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.