Maven official maven.apache.org/plugins/ plug-ins are released in this website

The Tomcat Maven plugin is available at tomcat.apache.org/maven-plugi…

The Tomcat Maven plugin is available at tomcat.apache.org/maven-plugi…

A simple use is as follows

1. Configure the configuration file in pom. XML

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
        <! -- Configure the port number -->
        <port>80</port>
        <! -- Configure the project path -->
        <path>/day1804</path>
    </configuration>
</plugin>
Copy the code

2. Run the Tomcat in idea

If you cannot find tomcat7 view blog.csdn.net/qq754772661…

3. Debug is required

4. Configure simplified tomcat startup