Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 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" xmlns:mvc="http://www.springframework.org/schema/mvc"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xsi:schemaLocation="http://www.springframework.org/schema/beans
  6. http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
  7. http://www.springframework.org/schema/mvc
  8. http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
  9. http://www.springframework.org/schema/context
  10. http://www.springframework.org/schema/context/spring-context-4.0.xsd">
  11.  
  12. <mvc:resources mapping="/**" location="/WEB-INF/wfm/" />
  13. <mvc:default-servlet-handler />
  14. <mvc:annotation-driven>
  15. <mvc:message-converters>
  16. <bean
  17. class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
  18. <property name="objectMapper">
  19. <bean class="com.eonecr.ext.jackson.ScalaObjectMapper"></bean>
  20. </property>
  21. </bean>
  22.  
  23. </mvc:message-converters>
  24. </mvc:annotation-driven>
  25. <bean id="viewResolver"
  26. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  27. <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
  28. <property name="prefix">
  29. <value>/WEB-INF/</value>
  30. </property>
  31. <property name="suffix">
  32. <value>.jsp</value>
  33. </property>
  34. </bean>
  35. <context:component-scan base-package="com.eonecr.wfm.webservice.**"/>
  36. <!-- <mvc:view-controller path="/" view-name="redirect:/#/portfolio/R002-C002"/> -->
  37. <mvc:view-controller path="/" view-name="wfm/index"/>
  38. <mvc:view-controller path="/log*" view-name="wfm/login"/>
  39. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement