Intellij IDEA import eclipse web project
table of Contents
Import
1. Import project
2. Choose eclipse for model
3. Directly next, until finish
Configuration dependency
4. Configure dependencies and jar packages
Select File -> Project Structure, select modules, select the imported module goldSpringDemo
5. Configure dependencies, select Dependencies, delete the red ones, and select the corresponding jdk for sdk
Select +, add dependency
Import the jar package, after selecting the lib folder, import the dependent jar
, At this point, the dependency configuration is complete.
Configure web
Still choose Modules, choose Project+, choose web
The following page appears, where you configure the web.xml location of the web project and the root path of the web project
A warning'Web' Fact resources are not included in an artifact appears above, click Create Artifact on the page, configure, and idea will automatically generate a configuration.
artifact is understood as a configuration for tomcat publishing
The automatically generated artifact reported an error, xx.jar is missing, we need to add the jar on the right to the left.
Select goldSpringDemo, right click -> put into output root, ok
Configure tomcat
1. Run -> Edit Configurations
2. Add tomcat, select template, select + sign, select Tomcat Server -> select Local
3. Configure Tomcat, click Fix, configure Artifact
Click fix, select the artifact you just configured, the Application Context is configured as the root path of the project release, click ok
Configure to this step, the project will still compile errors, you need to add tomcat dependency
Click +, select libraries, select tomcat
Finally, run -> run unnamed to run the configured tomcat, visit http://localhost:8080/
Reprinted: https://blog.csdn.net/Ditto_zhou/article/details/82853525
table of Contents
Import
1. Import project
2. Choose eclipse for model
3. Directly next, until finish
Configuration dependency
4. Configure dependencies and jar packages
Select File -> Project Structure, select modules, select the imported module goldSpringDemo
5. Configure dependencies, select Dependencies, delete the red ones, and select the corresponding jdk for sdk
Select +, add dependency
Import the jar package, after selecting the lib folder, import the dependent jar
, At this point, the dependency configuration is complete.
Configure web
Still choose Modules, choose Project+, choose web
The following page appears, where you configure the web.xml location of the web project and the root path of the web project
A warning'Web' Fact resources are not included in an artifact appears above, click Create Artifact on the page, configure, and idea will automatically generate a configuration.
artifact is understood as a configuration for tomcat publishing
The automatically generated artifact reported an error, xx.jar is missing, we need to add the jar on the right to the left.
Select goldSpringDemo, right click -> put into output root, ok
Configure tomcat
1. Run -> Edit Configurations
2. Add tomcat, select template, select + sign, select Tomcat Server -> select Local
3. Configure Tomcat, click Fix, configure Artifact
Click fix, select the artifact you just configured, the Application Context is configured as the root path of the project release, click ok
Configure to this step, the project will still compile errors, you need to add tomcat dependency
Click +, select libraries, select tomcat
Finally, run -> run unnamed to run the configured tomcat, visit http://localhost:8080/
Reprinted: https://blog.csdn.net/Ditto_zhou/article/details/82853525