Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rest-servlet.xml
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p="http://www.springframework.org/schema/p"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-4.0.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
- <context:annotation-config />
- <context:component-scan base-package="com.dataisys.esteem.controllers" />
- <bean id="exampledao" class="com.dataisys.esteem.dao.ExampleDaoImpl" />
- <!-- declare datasource bean -->
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName" value="com.mysql.jdbc.Driver" />
- <property name="url" value="jdbc:mysql://localhost:3306/esteemdb" />
- <property name="username" value="root" />
- <property name="password" value="" />
- </bean>
- <mvc:annotation-driven />
- <mvc:default-servlet-handler/>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement