Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <bean id="dbProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  2. <property name="locations">
  3. <list>
  4. <value>classpath:db.properties</value>
  5. <value>file:activiti-rest.properties</value>
  6. </list>
  7. </property>
  8. <property name="ignoreUnresolvablePlaceholders" value="true" />
  9. <property name="ignoreResourceNotFound" value="true" />
  10. </bean>
  11.  
  12. <bean id="dataSource"
  13. class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
  14. <property name="driverClass" value="${jdbc.driver}" />
  15. <property name="url" value="${jdbc.url}" />
  16. <property name="username" value="${jdbc.username}" />
  17. <property name="password" value="${jdbc.password}" />
  18. </bean>
  19.  
  20. db=mysql
  21. jdbc.driver=com.mysql.jdbc.Driver
  22. jdbc.url=jdbc:mysql://myHost/activitidb?characterEncoding=UTF-8
  23. jdbc.username=myUser
  24. jdbc.password=myPass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement