The hard way to SPRINGMVC learning-from getting started to giving up

Source: Internet
Author: User

Background frame is really difficult to get started AH!!!  IDE's use, environment, frame download, get started, every step is disgusting person. It took a whole two days to learn to use idea and to get a basic understanding of MAVEN (TM is a npm) and then download the corresponding jar package to build a simple servlet.

  

Here is a temporary record of the pits encountered.

First, why give up myeclipse? This IDE can only be cracked version of the interface is really ugly, the download of those themes are particularly stiff. Most importantly, because the version is too low, can only use the lower version of the JDK, often reported a version 51*** error, only the JDK to 1, 6, corresponding to MAVEN, spring to lower version, the trouble is very.

Later on try to change idea, good at getting started is fast, but there are a few giant pits:

1. Project in idea corresponds to workspace in MyEclipse, and module is project, so when creating a new project, be sure to add another folder to project location

2, the new MAVEN project needs to be selected

3, Pom.xml in the dependent version must pay attention to JDK compatibility issues!!!!

4, remember to set the Java file directory as the resource root, right-click folder:

5, if MAVEN configured the corresponding framework of the dependency or error: Could not resolve symbol ... Just file-invalidate the Cache and reboot.

At the moment, I'm just writing a super simple servlet, directory

Basically the IDE helped me to fix the folder, that S is new, the inside of the Servlet.java is written in a servlet class. The mapping in Web. XML requires its own configuration, and the IDE does not.

Until now still do not understand how to start with spring, the official website is very whole, but I temporarily did not find like HelloWorld such as the new entry case.

In a word, it's a simple matter to write code.

The hard way to SPRINGMVC learning-from getting started to giving up

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.