Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean faile
出错:
Error creating bean with name ‘dataSource’ defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is javax.naming.NoInitialContextException:
此错误是在测试类里测试applicationContext.xml文件是否有错的时候在控制台报的错。代码本身是没有问题的,意思是少了一个包。
解决方法:
将commons-pool.jar此包拷贝到lib下,就Ok了
版权声明:本文为博主原创文章,未经博主允许不得转载。
上一篇Tomcat界面出不来下一篇Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]:
,走过一个又一个陌生的城市,去感受旖旎的自然风光,