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