1234567891011121314151617181920212223242526272829303132333435 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-4.0.xsd">
- <context:component-scan base-package="com.fsm" />
- <!-- load jdbc 配置文件 -->
- <bean id="configBean"
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="location" value="classpath:jdbc.properties" />
- </bean>
- <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
- <property name="user" value="${${db}User}" />
- <property name="password" value="${${db}Password}" />
- <property name="jdbcUrl" value="${${db}Url}" />
- <property name="driverClass" value="${${db}Driver}" />
- </bean>
- <!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
- <property name="jndiName">
- <value>${${db}JNDI}</value>
- </property>
- </bean> -->
-
- <bean id="SpringContextUtil" class="com.fsm.platform.util.SpringContextUtil"
- scope="singleton" />
-
- <import resource="spring-*.xml" />
- </beans>
|