摘要: Springboot中如果希望在Utils工具类中,使用到我们已经定义过的Dao层或者Service层Bean,可以如下编写Utils类: 1. 使用@Component注解标记工具类StatisticsUtils: 2. 使用@Autowired(@Autowired和@Resource的区别不再 阅读全文
posted @ 2018-11-07 21:19 随风而逝,只是飘零 阅读(6404) 评论(0) 推荐(0) 编辑