随笔分类 -  SpringBoot

3500
摘要:在AImpl.java文件中引用BImpl.java的方法,编译正常,运行到调用的地方,报空指针异常,跟踪到异常位置,发现service为空,也就是按照之前controller层通过@Autowired注入service层失效。 解决办法: 在AImpl.java类中添加标红代码: 原理: 1.将需 阅读全文
posted @ 2019-04-20 15:36 王醒燕 阅读(6683) 评论(0) 推荐(0)
摘要:. 阅读全文
posted @ 2018-11-12 15:14 王醒燕 阅读(4288) 评论(1) 推荐(1)
摘要:Thymeleaf 阅读全文
posted @ 2018-11-12 14:13 王醒燕 阅读(155) 评论(0) 推荐(0)
摘要:springboot配置文件加载位置 阅读全文
posted @ 2018-11-08 14:07 王醒燕 阅读(224) 评论(0) 推荐(0)
摘要:@PropertySource 阅读全文
posted @ 2018-11-07 13:11 王醒燕 阅读(472) 评论(0) 推荐(0)
摘要:@Validated 阅读全文
posted @ 2018-11-07 13:00 王醒燕 阅读(1276) 评论(0) 推荐(0)
摘要:@ConfigurationProperties 阅读全文
posted @ 2018-11-07 12:54 王醒燕 阅读(614) 评论(1) 推荐(1)
摘要:@Component 阅读全文
posted @ 2018-11-07 10:51 王醒燕 阅读(579) 评论(0) 推荐(0)
摘要:. 阅读全文
posted @ 2018-11-06 22:07 王醒燕 阅读(683) 评论(0) 推荐(0)