标签:start depend enc boot cache pid group upd cti
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
@Cacheable(value = "value1", key = "#p0+#p1")
List<A> getAs(String param1, String param2){...}
@CacheEvict(value = {"value1"}, allEntries = true)
void updateA(String param3){...}
@SpringBootApplication
@EnableCaching
public class Application {
}
标签:start depend enc boot cache pid group upd cti
原文地址:https://www.cnblogs.com/white-knight/p/8962922.html