Loading

idea maven tomcat插件的使用

maven官方的插件都发布在这个网站 https://maven.apache.org/plugins/

tomcat maven插件官网在这 https://tomcat.apache.org/maven-plugin.html

tomcat maven插件 官方文档https://tomcat.apache.org/maven-plugin-2.2/run-mojo-features.html

简单的使用如下

1. 在pom.xml中配置

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
        <!--配置端口号-->
        <port>80</port>
        <!--配置项目路径-->
        <path>/day1804</path>
    </configuration>
</plugin>

2. 在idea中运行该tomcat

在这里插入图片描述

如果找不到tomcat7 查看https://blog.csdn.net/qq754772661/article/details/115265670?spm=1001.2014.3001.5501

3. 如果需要debug

在这里插入图片描述

4. 配置简化启动tomcat

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

posted @ 2021-03-31 17:16  克豪  阅读(237)  评论(0)    收藏  举报