applicationContext.xml中数据库连接池配置
2017-09-01 10:54
375 查看
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
......
</bean>
注解:destroy-method="close"的作用是当数据库连接不使用的时候,就把该连接重新放到数据池中,方便下次使用调用.
2017-9-1 10:55:16(盛泰时代山)
......
</bean>
注解:destroy-method="close"的作用是当数据库连接不使用的时候,就把该连接重新放到数据池中,方便下次使用调用.
2017-9-1 10:55:16(盛泰时代山)
相关文章推荐
- Spring applicationContext.xml 配置数据源,避免连接池泄露
- spring ApplicationContext.xml之PropertyPlaceholderConfigurer配置数据库
- 在ssh项目中的applicationContext.xml中配置数据源(c3p0)(连接池)
- spring连数据库的配置文件(applicationContext.xml)(转)
- SpringMVC之application-context.xml,了解数据库相关配置
- SpringMVC之application-context.xml,了解数据库相关配置
- Spring MVC 使用 applicationContext.xml 读取项目外 配置文件 配置连接池
- 在ssh项目中的applicationContext.xml中配置数据源(c3p0)(连接池)
- 关于ssh 框架 applicationContext.xml文件中配置hibernate数据库出现的一个小问题
- Spring中applicationContext.xml配置文件中数据库数据源配置
- 在tomcat下context.xml中配置各种数据库连接池
- 在tomcat下context.xml中配置各种数据库连接池
- 在tomcat下context.xml中配置各种数据库连接池
- SpringMVC之application-context.xml,了解数据库相关配置
- 在tomcat下context.xml中配置各种数据库连接池
- 在tomcat下context.xml中配置各种数据库连接池
- SSH整合,applicationContext.xml中配置hibernate映射文件问题
- applicationcontext.xml怎么分模块简化配置
- Spring配置文件applicationContext.xml快速入门
- applicationContext.xml文件配置