Myeclipse/sts Configuring a Spring MVC project for the first time on-premises deployment (12)

Source: Internet
Author: User
Tags svn update

1. Create a new folder locally and work as a project workspace;

2. Enter the folder with MyEclipse or STS, and the folder becomes the project workspace;

3. Go to the window-preferences, configure:

Environment default encoding:

1>. General the following content type. txt text UTF-8 update

2>. General – Working space, text file encoding

3>. General – Editor – Text editor – spelling

Configure the Java JDK for the required version of the project such as (1.7):

Configure Servers and validation under MyEclipse, note that after Tomcat selects enabled, validation validation is all removed.

Configuration MyEclipse under Maven4myeclispe: Mainly select the local maven location under installations;

4. Note that if the project is myeclipse[sts] + Maven + SVN:

It is best to import by using the Package Explorer-import [maven]

Myeclipse->[maven4myeclipse]

sts-> [Maven]

Choose Existing Maven projectes to import the project, or you may get an error, or something like encoding or other problems [the folder of the project has Chinese characters, or there are spaces in the project folder name];

<Projectxmlns="...">    <modelversion>Xxxx</modelversion>    <groupId>Com.study.xxx</groupId>    <Artifactid>Xxxname</Artifactid>    <Packaging>War</Packaging>    <name>Show Project Name When the list in the package resource Manger</name></Project>

If the project name is xxxproj:

If you import it in a normal way, or if you import it using the SVN checkout method, then the name shown in the package Explorer is "Xxxproj";

If you are using Maven, then the name "show Project name when the list in the package resource Manger" is displayed in "Pack Explorer"

If not configured:

< Build >    < Directory >${basedir}</directory>    <Finalname >${project.artifactid}|projectname</finalname></  build>

The project name packaged under Tomcat/webapps is the value "Xxxname" under Project Artifactid;

If there is a configuration, then the project deployed to Tomcat/webapps is the finalname value;

5. After the project is imported into the package explorer of MyEclipse or STS, if there is a Web project, the project [right-click] Property-Builder: Remove the JavaScript validation;

6. Some projects have been developed, new dependencies are added, these packages may be in conflict with the local, or where the unreasonable setting, may make the local can not run, but can not find the error message;

These you can make on the other machine can line colleague, put his. M2 folder the entire copy, placed in your local location, by configuring the [menu]-Windows-preferences-myeclipse-maven4myeclipse under the User Settings;

Reset settings.xml location, local settings.xml modify localrepository location [just cuff it. m2 storage location];

Re-execute the project [right-click]-maven4myeclipse-update project Configuration item;

7. In the initial configuration, or run the development during the error, such as SVN update, myeclipse[sts] abnormal shutdown, often [menu] item-clean-[clean all], and then project [right] under Maven[4myeclipse] Update Project Configuration Loops The operation, always right ^_^;

8. Some items cannot be run directly after running the configuration, and errors may occur;

    must first be deployed in     [tomcat 7.x] "Add Deployment" before "Run Server" can access the project properly;

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.