1. First from the svn repository, right-click to check out as a new project, select Java Project, enter the project name, select JDK, and click OK;
2. Right-click the project and select maven-Enable Dependency Management;
3. Right-click the project and select Properties-Project Facets, add Dynamic Web Moudle (the specific version depends on the JDK version) and JavaScripts, and then confirm;
4. Right-click the project, select Properties-Deployment Assembly, and make the following settings:
a. Select src/main/webapp/ to the root directory;
b. src/main/java goes to WEB-INF/classes;
c. src/main/resources goes to WEB-INF/classes;
d. Add Java Build Path Entries, select maven dependencies to complete, it will automatically choose to deploy to WEB -INF/lib.
5. Complete, you can run on the server at this time.
When the eclipse svn plugin checks out the maven web project, it cannot be correctly recognized as the correct web project
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327033703&siteId=291194637
Recommended
Ranking