Advertisement
jbjares

basicSpringMVC_conf

Sep 2nd, 2015
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  3. xmlns:mvc="http://www.springframework.org/schema/mvc"
  4. xsi:schemaLocation="http://www.springframework.org/schema/beans
  5. http://www.springframework.org/schema/beans/spring-beans.xsd
  6. http://www.springframework.org/schema/context
  7. http://www.springframework.org/schema/context/spring-context-3.1.xsd
  8. http://www.springframework.org/schema/mvc
  9. http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
  10. <bean id="viewResolver"
  11. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  12. <property name="prefix" value="/views/" />
  13. <property name="suffix" value=".jsp" />
  14. </bean>
  15.  
  16. <mvc:annotation-driven />
  17.  
  18. <context:annotation-config />
  19.  
  20. <context:component-scan base-package="com.jbjares" />
  21.  
  22. <mvc:resources mapping="/assets/**" location="/assets/" />
  23.  
  24. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement