码迷,mamicode.com
首页 > 其他好文 > 详细

maven 项目应用tomcat插件

时间:2020-01-07 16:14:16      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:mpi   pil   应用   str   code   net   get   自己   技术   

参考:https://blog.csdn.net/weixin_45089791/article/details/99067243

  • 首先在pom.xml中增加插件依赖
<build>
    <plugins>
      <!-- jdk版本插件 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.2</version>
        <configuration>
          <source>1.9</source>
          <target>1.9</target>
          <encoding>UTF-8</encoding>
          <showWarnings>true</showWarnings>
        </configuration>
      </plugin>

      <!-- tomcat7插件 -->
      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <port>8080</port>
          <path>/ss1</path>
          <server>tomcat7</server>
        </configuration>
      </plugin>
    </plugins>
  </build>

 

  • 自己添加

技术图片

  • 添加maven

技术图片

   

增加tomcat7:run

技术图片

   

技术图片

   

技术图片

 结束,点赞吧!

maven 项目应用tomcat插件

标签:mpi   pil   应用   str   code   net   get   自己   技术   

原文地址:https://www.cnblogs.com/daguozb/p/12161825.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!