[ERROR] org.springframework.web.context.ContextLoader Context initialization failed
2014-05-04 10:53
597 查看
解决方法:
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
destroy-method="close">
去掉红色部分。
_________________________________________________________________________________________________
destroy-method="close"的作用
destroy-method="close"的作用是当数据库连接不使用的时候,就把该连接重新放到数据池中,方便下次使用调用.
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
destroy-method="close">
去掉红色部分。
_________________________________________________________________________________________________
destroy-method="close"的作用
destroy-method="close"的作用是当数据库连接不使用的时候,就把该连接重新放到数据池中,方便下次使用调用.
相关文章推荐
- ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
- [ERROR][org.springframework.web.context.ContextLoader][main] Context initialization failed org.sprin
- 缓存报错-初始化失败 ERROR [org.springframework.web.context.ContextLoader] - context initialization failed
- ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
- [ERROR] org.springframework.web.context.ContextLoader Context initialization failed
- tomcat启动异常:ERROR org.springframework.web.context.ContextLoader - Context initialization failed
- ERROR ContextLoader:238 - Context initialization failed>>org.springframework.beans.factory.BeanCreat
- [org.springframework.web.context.ContextLoader] - Context initialization failed
- [Spring]error: org.springframework.web.context.ContextLoaderListener
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- Error configuring application listener of class org.springframework.web.….ContextLoaderListener
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
- org.springframework.web.context.ContextLoader -0 [localhost-startStop-1] ERROR org.springframewor
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
- 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
- Error configuring application listener of class org.springframework.web.context.ContextLoaderListen
- 构建maven的web项目时注意的问题(出现Error configuring application listener of class org.springframework.web.context.ContextLoaderListener 或者前端控制器无法加载)