How to create:
http://huxiaoheihei.iteye.com/blog/1766986
Problems encountered:
1: If spring MVC is configured with
<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class> org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> < Param-name>contextconfiglocation</param-name> <param-value>/web-inf/dispatcher-servlet.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </ servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> < Url-pattern>/</url-pattern> </servlet-mapping>
Then all the resources to access the controller, if you want to access static resources, you need to add a configuration
<mvc:resources mapping= "/resources/**" location= "/resources/"/>
2: Be sure to remember, Project right-click, open Deployment assembly view configuration, and Maven dependency click Add to Add.
Using MAVEN to create Web projects in Elcipse