applicationContext-database.xml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:aop="http://www.springframework.org/schema/aop"
  5. xmlns:tx="http://www.springframework.org/schema/tx"
  6. xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  7. xmlns:context="http://www.springframework.org/schema/context"
  8. xsi:schemaLocation="
  9. http://www.springframework.org/schema/context
  10. http://www.springframework.org/schema/context/spring-context.xsd
  11. http://www.springframework.org/schema/beans
  12. http://www.springframework.org/schema/beans/spring-beans.xsd
  13. http://www.springframework.org/schema/jdbc
  14. http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
  15. http://www.springframework.org/schema/tx
  16. http://www.springframework.org/schema/tx/spring-tx.xsd
  17. http://www.springframework.org/schema/aop
  18. http://www.springframework.org/schema/aop/spring-aop.xsd">
  19. <!-- dataSource define begin -->
  20. <!-- dataSource configuration -->
  21. <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" destroy-method="close" >
  22. <!-- <property name="driverClass" value="#{dataSoruceConfig.driverClass}"/> -->
  23. <property name="url" value="${config.datasource.url}"/>
  24. <property name="username" value="${config.datasource.username}"/>
  25. <property name="password" value="${config.datasource.password}"/>
  26. </bean>
  27. </beans>