Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

1、报错信息

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

2、不懂英文的可以用百度翻译、有道翻译、QQ在线翻译(快捷键Ctrl+Alt+O)等工具帮助翻译

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

 报错信息显示找不到名为AdminService的bean,也就是说在spring容器里没有找到名为AdminService的bean

 3、原因

忘记在AdminServiceImpl类加上@Service,导致没有把该类托管到spring容器里,所以调用AdminService接口来调用AdminServiceImpl类时报错

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

 4、解决办法

加上 @Service

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

上一篇:applicationContext.xml备份


下一篇:ApplicationContext与BeanFactory的联系和区别