Novice teaches you to learn Spring4.0+maven building Super Simple Web project (i)

Source: Internet
Author: User
Tags tomcat tomcat server
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

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.