1. For Springdispatcherservlet, first install the Springsource-tool-suite tool, this convenient for the Web. XML configuration, use the shortcut key alt+/.
Tutorial I wrote on the Sina blog above, Link: http://blog.sina.com.cn/s/blog_648e93100102x31t.html
Please refer to. Note the zip download to which you select the card according to your own version of the IDE.
2.jar Package Problem:
The spring version has a matching relationship with the JDK version. In general, spring3.x matches the JDK 1.7,spring 4.x matching JDK1.8.
If the project is set up to run, index.jsp can run, but click on the Hello World hyperlink jump appears 500 error, you can check whether the version matches. If it does not match, after you turn off eclipse, go to Workspace/springmvc/web-inf/lib, delete the original spring jar package, and download the matching version of the jar package into the directory.
or more JDK, but this is more complicated, I choose the former.
3.tomcat problem.
The spring version has a matching relationship not only with the JDK version, but also with Tomcat. The author's original Tomcat was version 7.0 and was unable to run the Spring 3.x project. A version of Tomcat 8.0 was reinstalled on the computer. To install two versions of Tomcat on the same computer, you need to change the second Tomcat configuration file, modify the port number, and when setting environment variables, the environment variable name should also be distinguished from the first version of Tomcat. Specific tutorials Online A lot, here is not detailed introduction. One thing to say is:
If a startup.bat flash occurs, the service/apache Tomcat ends and then runs Startup.bat. If the Tomcat8w.exe click the Start button does not start Tomcat, close the Startup.bat DOS interface window and the server in eclipse to start successfully.
Spring Getting Started Hello World FAQs and Solutions