Springboot
Cold_Blooder
这个作者很懒,什么都没留下…
展开
-
Springboot使用@EnableCache缓存
1、pom.xml文件引入依赖<!--缓存 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId></dependency>...原创 2019-04-18 16:33:03 · 5923 阅读 · 0 评论 -
在Util中使用@Autowired注解注入为null的问题解决
@Componentpublic class CrmSupCommon { @Autowired private CrmSupMapper crmSupMapper; public static CrmSupCommon crmSupCommon; @PostConstruct public void init() { crmSupCo...原创 2019-06-19 16:35:03 · 1681 阅读 · 0 评论