会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
☆♂安♀★
博客园
首页
新随笔
联系
订阅
管理
2020年3月30日
Idea 的Test测试报错:java.lang.IllegalStateException: Failed to load ApplicationContext
摘要: 因为在Test里面使用了注解@Autowired 引入来至bean.xml文件的内容 ,而在Test没有没有办法自动引入,需要在Test类上加上注解 @ContextConfiguration(locations = "classpath:bean.xml")不然会报以下错误 Caught exce
阅读全文
posted @ 2020-03-30 18:52 ☆♂安♀★
阅读(6339)
评论(0)
推荐(0)
编辑
公告