Guest User

Untitled

a guest
Jan 17th, 2018
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 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. xmlns:mvc="http://www.springframework.org/schema/mvc"
  6. xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
  7. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  8. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
  9. <context:component-scan base-package="com.accent"></context:component-scan>
  10. <mvc:annotation-driven></mvc:annotation-driven>
  11. <!-- <bean id="around" class="com.accent.LoggingAroundAdvice"></bean> -->
  12. <!-- <bean id="/Welcome.htm " class="com.accent.WelcomeController"></bean> -->
  13. <bean id="viewResolver"
  14. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  15. <property name="prefix" value="/jsps/"></property>
  16. <property name="suffix" value=".jsp"></property>
  17. </bean>
  18. <bean id="dao" class="com.accent.EmployeeDao">
  19. </bean>
  20. <bean id="service" class="com.accent.EmployeeService">
  21. </bean>
  22. <!-- <bean id="econt" class="com.accent.EmployeeController"> </bean> -->
  23. <bean id="ds"
  24. class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  25. <property name="username" value="root"></property>
  26. <property name="password" value="root"></property>
  27. <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
  28. <property name="url" value="jdbc:mysql://localhost:3306/emp"></property>
  29. </bean>
  30. <bean id="template" class="org.springframework.jdbc.core.JdbcTemplate">
  31. <property name="dataSource" ref="ds"></property>
  32. </bean>
  33. <bean id="transactionManager"
  34. class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
  35. primary="true">
  36. <property name="dataSource" ref="ds"></property>
  37. </bean>
  38. <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
  39. <property name="basename" value="msg"></property>
  40. </bean>
  41. <bean id="localeResolver"
  42. class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
  43. <property name="defaultLocale" value="en_US"></property>
  44. </bean>
  45.  
  46.  
  47. </beans>
Add Comment
Please, Sign In to add comment