Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
- <context:component-scan base-package="com.accent"></context:component-scan>
- <mvc:annotation-driven></mvc:annotation-driven>
- <!-- <bean id="around" class="com.accent.LoggingAroundAdvice"></bean> -->
- <!-- <bean id="/Welcome.htm " class="com.accent.WelcomeController"></bean> -->
- <bean id="viewResolver"
- class="org.springframework.web.servlet.view.InternalResourceViewResolver">
- <property name="prefix" value="/jsps/"></property>
- <property name="suffix" value=".jsp"></property>
- </bean>
- <bean id="dao" class="com.accent.EmployeeDao">
- </bean>
- <bean id="service" class="com.accent.EmployeeService">
- </bean>
- <!-- <bean id="econt" class="com.accent.EmployeeController"> </bean> -->
- <bean id="ds"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="username" value="root"></property>
- <property name="password" value="root"></property>
- <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
- <property name="url" value="jdbc:mysql://localhost:3306/emp"></property>
- </bean>
- <bean id="template" class="org.springframework.jdbc.core.JdbcTemplate">
- <property name="dataSource" ref="ds"></property>
- </bean>
- <bean id="transactionManager"
- class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
- primary="true">
- <property name="dataSource" ref="ds"></property>
- </bean>
- <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
- <property name="basename" value="msg"></property>
- </bean>
- <bean id="localeResolver"
- class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
- <property name="defaultLocale" value="en_US"></property>
- </bean>
- </beans>
Add Comment
Please, Sign In to add comment