Creating a Spring project

First, make sure that you have installed STS in Eclipse EE. From the Eclipse menu, select File | New | Other and then select the SpringSpring Legacy Project option. Enter the project name and select the Spring MVC Project template:

Figure 8.2: Select the Spring MVC Project template

Click on Next. The page will ask you to enter the top-level package name:

Figure 8.3: Enter top-level package name

Whatever you enter as a top-level package, the wizard takes the third sub-package as the application name. When the application is deployed in a server, the application name becomes the context name. For example, if you enter the package name as packt.jee.course_management, then course_management becomes the application name, and the base URL of the application on the local machine would be http://localhost:8080/course_management/.

Click Finish. This creates a Maven project with the required libraries for Spring MVC.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.76.138