在 pom.xml 中添加如下内容

<!-- 配置 tomcat 插件 -->
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <configuration>
                <path>/</path><!-- 浏览器地址 不需要工程名了 例如:localhost:8080 -->
                <port>8080</port>
            </configuration>
        </plugin>
    </plugins>
</build>

 

相关文章:

  • 2021-12-26
  • 2021-04-02
  • 2021-12-11
猜你喜欢
  • 2021-11-19
  • 2021-08-03
  • 2021-09-10
  • 2022-01-08
  • 2021-06-20
  • 2021-05-15
相关资源
相似解决方案