SpringBoot如何使用JVM自帶的ehcahe

1、pom文件加入ehcahe的依賴:java         <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId>spring </dependency>緩存 2、新建ehcache.xml配置文件,內容以下:springboot <e
相關文章
相關標籤/搜索