Hey! I did a map of the deployed files before, but suddenly I had a problem and missed it.
The premise of the occurrence is:
I previously created a SPRINGMVC project under Eclipse and then copied and renamed the project, but some of the configuration files were also copied ( Mainly in the project of the. Settings directory, but the original project name is not removed, so that the new project after deployment, the request is always reported 404 cannot find the page)
Reason is
Files in Tomcat Server.xml
<context docbase= "Banksimulateapp" path= "/bank" reloadable= "true" source= "Org.eclipse.jst.jee.server: Banksimulateapp "/>
Path has not been modified
Org.eclipse.wst.common.component
<?xml version= "1.0" encoding= "UTF-8"? ><project-modules id= "Modulecoreid" project-version= "1.5.0" > <wb-module deploy-name= "BankSimulateapp" > <wb-resource deploy-path= "/" source-path= "/target/ M2e-wtp/web-resources "/> <wb-resource deploy-path="/ " source-path="/src/main/webapp " tag=" Defaultrootsource "/> <wb-resource deploy-path= "/web-inf/classes" source-path= "/src/main/java"/> <wb-resource deploy-path= "/WEB-INF/classes" source-path = "/src/main/resources"/> <property name= " Context-root " value=" Bank "/> <property name=" Java-output-path " value="/banksimulatEapp/target/classes "/> </wb-module></project-modules>
The value of Context-root has not been modified
This leads to external access requiring HTTP://XXXX: Port/bank instead of http://xxxx: Port/banksimulateapp
Hereby record!
After copying the project, always reported 404 cannot find the page, but the configuration is no problem