SPRINGMVC (i) Eclipse builds a Web project

Source: Internet
Author: User

Environment Eclipse JEE version--------Jdk1.6 version---------tomcat7.0-x64
are very good to get the resources to install the configuration jdk,eclipse,tomcat will not say. Directly open eclipse new Dynamic Web project, the project name is SPRINGMVC as shown


Here Tomcat uses your own 7.0. (OK with 6.0) then it's 7.0. corresponding to Dynamic Web module version3.0/6.0 corresponds to 2.5. None of this has anything to do with the default. Then don't finish,next-> as pictured


When eclipse creates a new Web project, compiling the output directory is not the same as myeclipse, and when you create a new Web project in Eclipse, it's like the build\classes. Myclipse is web-inf\classes and the server class loader ClassLoader loads the. class file in the/web-inf/classes directory by default. So here's a little change. Change to Webcontent/web-inf/classes

Then the above source folder on a src can be more customizable several, here I add folder added a resource and test, used to store some XML configuration file and do the test as shown in


And then continue next> as pictured


Here tick can automatically generate Web.xml file, the default is not checked, here on the hook, or you have to copy from another place to use. Other defaults do not change and can finish. When you finish creating the diagram


This is not a JSP page, you can create a new HelloWorld webcontent under the index.jsp. Then right-click on the SPRINGMVC project and run As-run on server


Pop-up Selection Server dialog box, here is not a screenshot, too much, the default is to show you before the TOMCAT7. Direct finish the project ran on Tomcat, and then the browser entered

http://localhost:8080/springMVC/Displays the Hello world of the newly created index.jsp page, the new Web project is completed.

Related Article

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.