How to open and configure java web project in idea

How does idea open the java web project and run it, this time taking the Servlet project as an example

First, click File->open, select the java web project to run, select the project and click ok, if a pop-up box pops up, you can choose the current window Thsi window or New window!

insert image description here

2. Check whether the JDK is installed, select File->Project Structure, configure the JDK you installed

3. Configure Tomcat, if not, click + to add local in TomcatServer to configure.

4. To deploy the project, click + on the right side of Depleyment, then select Artifact, select exploded to deploy, and then click ok.

 

 5. Then run it!

Guess you like

Origin blog.csdn.net/wx1998114/article/details/131212898