会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zipon
博客园
首页
新随笔
联系
管理
订阅
01 2019 档案
springboot中如果使用了@Autowired注入了bean,则这个类也要为spring bean,new出来注入的bean为null
摘要:https://blog.csdn.net/Mr_Runner/article/details/83684088 问题:new出来的实例中含有@Autowired注入时,注入的Bean为null; 解决方法:不要用new的方式实例化,也采用注解的方式,在需要new的实例类上加@Component注解
阅读全文
posted @
2019-01-17 13:54
zipon
阅读(2116)
评论(0)
推荐(0)
使用vuepress搭建文档管理/博客
摘要:参考:https://lewiscutey.github.io/blog/blog/vuepress-theme-toos.html
阅读全文
posted @
2019-01-10 11:55
zipon
阅读(545)
评论(0)
推荐(0)
公告