spring中数据源配置方式
来源:互联网 发布:有哪些经济数据库 编辑:程序博客网 时间:2024/05/22 03:35
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<context:component-scan base-package="org.itfuture.examples" />
<!--
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config1.properties</value>
<value>classpath:config2.properties</value>
</list>
</property>
</bean>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config*.properties</value>
</list>
</property>
</bean>
-->
<!--
<context:property-placeholder location="classpath:config1.properties,classpath:config2.properties" />
-->
<context:property-placeholder location="classpath:config*.properties" />
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
p:driverClassName="${driverClassName}" p:url="${url}"
p:username="${username}" p:password="${password}" />
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<context:component-scan base-package="org.itfuture.examples" />
<!--
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config1.properties</value>
<value>classpath:config2.properties</value>
</list>
</property>
</bean>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:config*.properties</value>
</list>
</property>
</bean>
-->
<!--
<context:property-placeholder location="classpath:config1.properties,classpath:config2.properties" />
-->
<context:property-placeholder location="classpath:config*.properties" />
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
p:driverClassName="${driverClassName}" p:url="${url}"
p:username="${username}" p:password="${password}" />
</beans>
- spring中数据源配置方式
- Spring数据源配置方式
- Spring配置数据源方式
- Spring中配置数据源
- spring中配置数据源
- Spring中配置数据源
- spring中数据源配置
- spring中配置数据源
- Spring中数据源配置
- Spring中数据源配置
- Spring中配置数据源
- Spring中配置数据源
- Spring配置数据源的方式
- spring中配置不可见的数据源连接方式!
- 【Spring】Spring配置数据源的常用方式
- [转] spring中配置数据源
- spring中配置proxool数据源
- Spring中配置JNDI数据源
- open淘宝酒店API open淘宝属性API open淘宝类目API
- 豆瓣上的好书:《藏地密码》-全集-epub格式
- 关于Latex中交叉引用表格时标号不对的问题解决
- codeforces_4A Watermelon
- VS2010 配置DirectShow开发环境
- spring中数据源配置方式
- 关于隐士图搜索的小总结
- 在Ubuntu下安装.bundle文件
- 推荐算法系列(一)
- 关于I2C和SPI总线协议
- db2 启动日志 SQL5043N
- char *和char [] 区别
- 今天第一次写项目过程中遇到的错误
- C#写的NoSQL开源项目/系统(系列)