Couldn't find a destroy method named 'close' on bean with name 'JdbcTemplate
来源:互联网 发布:二重积分的算法 编辑:程序博客网 时间:2024/05/01 22:19
在配置spring4.0下的applicationContext.xml,遇到问题“Couldn't find a destroy method named 'close' on bean with name 'JdbcTemplate”。
原JdbcTemplate配置为:
<bean id="JdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate" destroy-method="close">
<property name="dataSource" ref="DataSource" />
</bean>
补救方法:
去掉 destroy-method="close" 配置。
<bean id="JdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="DataSource" />
</bean>
0 0
- Couldn't find a destroy method named 'close' on bean with name 'JdbcTemplate
- Couldn't find a destroy method named 'close' on bean with name 'dataSourceFund'
- Couldn't find a destroy method named 'false' on bean with ....
- Invocation of destroy method 'close' failed on bean with name 'sqlSession'
- couldn't find native method
- Couldn’t find device with uuid ‘xxxxxxxxxxxxx’
- Linux_LVM Couldn't find device with uuid
- A new node couldn't be inserted because one with the same name exists. (VERR_CFGM_NODE_EXISTS)
- Couldn't find a tree builder with the features you requested: lxml 问题解决
- bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib
- bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml
- Python错误:bs4.FeatureNotFound: Couldn't find a tree builder with the features you
- bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml
- E/dalvikvm( 2456): ERROR: couldn't find native method
- 解决“ERROR: couldn't find native method”方法
- cannot find class for bean with name ''
- Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser
- 【 destroy-method="close"的作用】
- POJ 2478 Farey Sequence
- 爬虫难题
- 2-2 Time类的定义(类与对象)
- 不用安装第三方软件就能共享wifi的方法
- Spring—Quartz定时任务调度
- Couldn't find a destroy method named 'close' on bean with name 'JdbcTemplate
- Java中的单例模式的优秀实现
- HDU 5898 odd-even number 沈阳网络赛
- jquery各种图形统计
- UML类图示例
- sqlite数据库存储日期格式
- python 脚本转成exe可执行程序
- s3c2416--nandflash驱动--八位ecc校验
- jQuery - 添加元素