When running Tomcat in IDEA, it reported: No artifacts marked for deployment

 

 When configuring Tomcat in IDEA, it prompts No artifacts marked for deployment

The solution is as follows:

 

  • 1. Click the button on the toolbar to open the project Project Structure

  • 2. After selecting Artifaces, click + at the top to find the following interface

  • 3. The following interface pops up, click Ok

  • 4. Enter the Edit Configurations of Tomcat again, the red Fix at the bottom, then enter the interface below, click Ok

 

After the above four steps, Tomcat in IDEA is no longer reporting errors, and the project can be run directly through Tomcat.

 

Guess you like

Origin blog.csdn.net/nihaomabmt/article/details/113865868