Guest User

Untitled

a guest
Mar 18th, 2016
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7. http://www.springframework.org/schema/context
  8. http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  9.  
  10. <context:component-scan base-package="roshka.HelloWorld.controller" />
  11.  
  12.  
  13.  
  14. <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  15. <property name="prefix">
  16. <value>/WEB-INF/views/</value>
  17. </property>
  18. <property name="suffix">
  19. <value>.jsp</value>
  20. </property>
  21. </bean>
  22.  
  23. <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  24. <property name="driverClassName" value="org.postgresql.Driver"/>
  25. <property name="url" value="jdbc:postgresql://localhost:5432/prueba_roshka"/>
  26. <property name="username" value="postgres"/>
  27. <property name="password" value="postgres"/>
  28. </bean>
  29.  
  30.  
  31. </beans>
Add Comment
Please, Sign In to add comment