Spring Getting Started Hello World FAQs and Solutions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.