会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王醒燕
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
SpringBoot
3500
SpringBoot在Impl类中调用其它service层失败解决办法
摘要:在AImpl.java文件中引用BImpl.java的方法,编译正常,运行到调用的地方,报空指针异常,跟踪到异常位置,发现service为空,也就是按照之前controller层通过@Autowired注入service层失效。 解决办法: 在AImpl.java类中添加标红代码: 原理: 1.将需
阅读全文
posted @
2019-04-20 15:36
王醒燕
阅读(6683)
评论(0)
推荐(0)
thymeleaf+springboot找不到html,只返回了字符串
摘要:.
阅读全文
posted @
2018-11-12 15:14
王醒燕
阅读(4288)
评论(1)
推荐(1)
Thymeleaf模板引擎
摘要:Thymeleaf
阅读全文
posted @
2018-11-12 14:13
王醒燕
阅读(155)
评论(0)
推荐(0)
springboot配置文件加载位置
摘要:springboot配置文件加载位置
阅读全文
posted @
2018-11-08 14:07
王醒燕
阅读(224)
评论(0)
推荐(0)
@PropertySource&@ImportResource&@Bean
摘要:@PropertySource
阅读全文
posted @
2018-11-07 13:11
王醒燕
阅读(472)
评论(0)
推荐(0)
@Validated数据校验
摘要:@Validated
阅读全文
posted @
2018-11-07 13:00
王醒燕
阅读(1276)
评论(0)
推荐(0)
@ConfigurationProperties注解
摘要:@ConfigurationProperties
阅读全文
posted @
2018-11-07 12:54
王醒燕
阅读(614)
评论(1)
推荐(1)
@Component注解
摘要:@Component
阅读全文
posted @
2018-11-07 10:51
王醒燕
阅读(579)
评论(0)
推荐(0)
@SpringBootApplication注解
摘要:.
阅读全文
posted @
2018-11-06 22:07
王醒燕
阅读(683)
评论(0)
推荐(0)
公告