Novice teaches you to learn Spring4.0+maven building Super Simple Web project (i)
This course is a beginner's introductory course for a step-by-step super-simple tutorial. I used to refer to an article written by predecessors to start, but encountered some problems, special record. first, the basic Setup Chapter 1. JDK:
Version is 1.7. You can set environment variables, or you can specify them myeclipse yourself.
Environment Variables
myeclipse Self-specified JDK version
The first step:
In particular,
Step Two:
2. Tomcat:
Version is 7.0.
MyEclipse Specify the Tomcat server:
3. Maven:
settings See:http://www.cnblogs.com/fancyzero/archive/2012/06/09/maven3.html
There is a local directory named Maven Repository, which is localrepository.
Specify maven to pull dependencies from the LAN server
Attached: History of the most full use of Nexus to build MAVEN server detailed configuration
Http://www.cnblogs.com/duojia/p/4565243.html 4, remark:
My environment for Win10 X64,myeclipse10.
Quick tips on MyEclipse10:
Http://blog.sina.com.cn/s/blog_66f8c0480100sm82.html
java Fix error: cril+1 after locating
java annotations: cril+/after check
XML Comment: crtl+shift+/after selection
XML Dismiss Comment: crtl+shift+\ after selected
http://www.cnblogs.com/sixiweb/p/3250298.html about import javax.servlet.annotation.WebServlet; problems that cannot be found
Method One, copy the Servlet-api.jar below the tomcat7.0/lib to%java_home%/jre/lib/ext, and then restart the MyEclipse
Method Two, Build path import tomcat X.0/lib/servlet-api-jar can
Method Three, this project BuildPath "Add Library->server Runtime is tomcat7.0
attached myeclipse add Server library:
(1) File->new->other
(2) Pop-up window tick Show all Wizards, then enter server in type fiter text, check server->next-> select apache-> Tomcat v6.0 server-> The following server name can be filled in as needed->next-> select the project to add the server library->finish
Note: When you add the server library in your project
right-click Project-Build path->configure build path->java build path, add library->w TP Server Runtime (myeclipse incompatible), select New Server library->finish