Today, when using MyEclipse to deploy a project, found that there is a problem with the configuration, in the Web configuration, Web-root folder This value is wrong, directly modified after the save found still this, does not work. The internet found that there are such problems, but there is no solution, and later in the help of colleagues to modify a configuration file, the problem is solved, record, to prevent the problem in the future do not know how to do.
Locate the. Setting folder under the project path, open the Org.eclipse.wst.common.component file inside, and modify the following configuration:
If there were 2 such configurations:
<wb-resource deploy-path= "/" source-path= "/target/m2e-wtp/web-resources"/> <wb-resource deploy-path=
"/" source-path= "/src/main/webapp" tag= "Defaultrootsource"/>
Delete the first one directly, or move the top down to the bottom.
If there is no bottom, then the top of the modification to the bottom can be, but remember not to upload up.
Because the project colleague was created in Eclipse and MyEclipse and Eclipse are different, this can cause this problem to occur.