Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  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:context="http://www.springframework.org/schema/context"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  9.  
  10.  
  11. <!-- Definicion del datasource -->
  12. <!-- HikariCP configuration -->
  13.  
  14. <bean id="dataSource" class="com.zaxxer.hikari.HikariDataSource"
  15. destroy-method="close">
  16. <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  17. <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/tec_gurus" />
  18. <property name="username" value="root" />
  19. <property name="password" value="root" />
  20. </bean>
  21.  
  22. <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
  23. <property name="dataSource" ref="dataSource"/>
  24. </bean>
  25.  
  26. <bean id="clienteDAOBean" class="net.tecgurus.bd01.persistence.impl.ClientDAOImpl">
  27. <property name="jdbcTemplate" ref="jdbcTemplate" />
  28. </bean>
  29.  
  30.  
  31. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement