I. Building the Environment
1.1JDK
There's no need to say more about JDK configuration. Add JDK installation path directly under the computer environment variable path
1.2eclipse
Install Eclipse
1.3 maven
1,3.1 Configuring MAVEN Environment variables
Verifying that the MAVEN environment variable is configured successfully
1.3.2 Eclipse configuration Maven Plugin
Help->eclipse Marketplace search keyword maven to plugin maven integration for Eclipse and click Install
Remember to restart. In this case, we need to install the MAVEN here with the MAVEN path configured above, need to do the following configuration.
1.4spring
Two creating a MAVEN project
2.1 Select Maven--------New in the new window. Click Next
2.2 Selecting a Project workspace
2.3 Select project Type
2.4
GROUPID: The project organization's reverse domain name, such as the Apache project can org.apache start
Artfactid: Represents the unique identity of a single item under GroupID
Version: Release of the project, version ID plus snapshot tag
Packing: The project's packaged output, which defaults to the jar. Refers to building a Web project for a war project package.
Groupid,artfactid,version identifies the uniqueness of the project, packing can default
2.5 just created the first MAVEN project as shown in the initial structure
Three. Configure the MAVEN project
3.1 Adding the source folder
Next you need to add a Src/main/java,src/test/java, src/test/resources three folders.
Open Project Edit Properties--java build path, click Source
Let's remove these two packages before we re-establish
3.2 Configuring the Project compilation Environment
Then modify project facets to change Java to 1.7 first.
Dynamic Web module cannot be directly modified here to 3.0, you need to open a. Settings folder under the project directory, open the Org.eclipse.wst.common.project.facet.core.xml and make the following changes:
Restart Eclipe to see that the changes are in effect.
Create Maven management under Eclipse