如何在maven中的项目使用tomcat插件

在pom.xml中引入tomcat7插件,具体示例代码如下:

<project>
 <build>
  <plugins>
   <plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.1</version>
    <configuration>
    <port>8080</port>
    <path>/</path>
    <uriEncoding>UTF-8</uriEncoding>
    <server>tomcat7</server>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>

 

配置run tomcat

当你的才华还撑不起你的野心时
那你就应该静下心来学习
当你的能力还驾驭不了你的目标时
那就应该沉下心来历练
原文地址:https://www.cnblogs.com/yang-xiansen/p/10429440.html