webmvc.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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 http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  6. <mvc:annotation-driven />
  7. <mvc:default-servlet-handler />
  8. <mvc:resources mapping="/static/**" location="/resources/" />
  9. <context:component-scan base-package="com.uas.platform" />
  10. <bean
  11. class="org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver">
  12. <constructor-arg>
  13. <bean
  14. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  15. <property name="prefix" value="/WEB-INF/views/" />
  16. <property name="suffix" value=".html" />
  17. <property name="contentType" value="text/html;charset=UTF-8" />
  18. </bean>
  19. </constructor-arg>
  20. <property name="normalPrefix" value="normal/" />
  21. <property name="mobilePrefix" value="mobile/" />
  22. <property name="tabletPrefix" value="tablet/" />
  23. </bean>
  24. <mvc:view-controller path="/" view-name="index" />
  25. <mvc:view-controller path="/signin" view-name="signin" />
  26. <mvc:view-controller path="/storage" view-name="storage" />
  27. <mvc:view-controller path="/public" view-name="public" />
  28. <mvc:view-controller path="/serve" view-name="serve" />
  29. </beans>