Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <bean id="dbProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations">
- <list>
- <value>classpath:db.properties</value>
- <value>file:activiti-rest.properties</value>
- </list>
- </property>
- <property name="ignoreUnresolvablePlaceholders" value="true" />
- <property name="ignoreResourceNotFound" value="true" />
- </bean>
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
- <property name="driverClass" value="${jdbc.driver}" />
- <property name="url" value="${jdbc.url}" />
- <property name="username" value="${jdbc.username}" />
- <property name="password" value="${jdbc.password}" />
- </bean>
- db=mysql
- jdbc.driver=com.mysql.jdbc.Driver
- jdbc.url=jdbc:mysql://myHost/activitidb?characterEncoding=UTF-8
- jdbc.username=myUser
- jdbc.password=myPass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement