Tomcat plug-in configuration in IDEA


Tomcat plug-in configuration in IDEA

1. Download the maven plug-in

Insert image description here

2. Configure pom.xml file

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
<!--      		<configuration>
                    <port>80</port> &lt;!&ndash;配置访问端口号&ndash;&gt;
                    <path>/</path>  &lt;!&ndash;项目访问路径&ndash;&gt;
                </configuration>-->
            </plugin>
        </plugins>
    </build>

3. Start Tomcat

Insert image description here

Insert image description here

Guess you like

Origin blog.csdn.net/s17856147699/article/details/129441079