2018年2月24日 | Leave a comment 问题: spring boot 启用 cache 解决: 增加 @EnableCaching @SpringBootApplication(scanBasePackages = { }) @EnableCaching public class App { public static void main(String[] argv) { SpringApplication.run(App.class, argv); } } 123456789 @SpringBootApplication(scanBasePackages = {})@EnableCachingpublic class App { public static void main(String[] argv) { SpringApplication.run(App.class, argv); }} 参考: