abrar12

configuration file

Jan 6th, 2015
271
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rest-servlet.xml
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <beans xmlns="http://www.springframework.org/schema/beans"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xmlns:p="http://www.springframework.org/schema/p"
  7. xsi:schemaLocation="
  8. http://www.springframework.org/schema/beans
  9. http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  10. http://www.springframework.org/schema/context
  11. http://www.springframework.org/schema/context/spring-context-4.0.xsd
  12. http://www.springframework.org/schema/mvc
  13. http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
  14. <context:annotation-config />
  15.  
  16. <context:component-scan base-package="com.dataisys.esteem.controllers" />
  17.  
  18. <bean id="exampledao" class="com.dataisys.esteem.dao.ExampleDaoImpl" />
  19.  
  20.  
  21.  
  22. <!-- declare datasource bean -->
  23. <bean id="dataSource"
  24. class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  25. <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  26. <property name="url" value="jdbc:mysql://localhost:3306/esteemdb" />
  27. <property name="username" value="root" />
  28. <property name="password" value="" />
  29. </bean>
  30.  
  31.  
  32. <mvc:annotation-driven />
  33. <mvc:default-servlet-handler/>
  34.  
  35.  
  36. </beans>
RAW Paste Data