Maven + spring + springMVC + mybatis + Junit + Log4j configuration personal summary, mavenspringmvc
First paste the project reference address: Success. 2. Pay attention to the two URLhttp: // localhost: 8080/springmvc_mybatis_demo/user/showInfo/1.html s http: // localhost: 8080/springmvc_mybatis_demo/user/showInfos.html s Note: Where is the suffix htmls determined? Is determined by <url-pattern> in <servlet-mapping> In the spring-mvc.xml file. If you don't want any suffix, you can use/to represent
Attaches the code for self-debugging: (tested) address is commonly used http://pan.baidu.com/s/1nuA31jz command window: window -- Show View -- Other -- Problems can View the specific error information of the project; talk about Maven build, maven install and Maven cleanMaven clean mainly clears the structure generated under the target directory. It can be used after the POM is modified; in Maven build, you can enter the golas command to implement the clean/compile/packageMaven install implementation process as compile-test-package -- install.