背景:
1、框架式springmvc+碧浊。涂邀。。箱锐。
2比勉、在配置文件中有如下的配置bean
配置文件中的bean
3、代碼中的注入
產(chǎn)生的問題:
在tomcat啟動后驹止,報錯
this web application instance has been stopped already. Could not load [com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask]
Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'publishColumnAction':
error creating bean with name 'publishColumnAction': Injection of resource dependencies failed;
4浩聋、解決方法
一、嘗試將AutoWired修改為@Resource,繼續(xù)報錯
二臊恋、后發(fā)現(xiàn)報錯中包含了說明信息衣洁,在配置文件中的MakePageService的注入錯誤,因此注釋掉配置文件中的bean捞镰,啟動成功闸与。
具體原因,還需要研究