zoukankan      html  css  js  c++  java
  • Maven 配置tomcat 插件

    Maven 配置tomcat 插件

    一、pom.xml中加入插件配置

    <plugin>

                <groupId>org.apache.tomcat.maven</groupId>

                <artifactId>tomcat7-maven-plugin</artifactId>

                <version>2.2</version>

                   <configuration>

                      <path>/</path>

                      <port>8080</port>

                      <server>tomcat7</server>

                   </configuration>

                    <executions>

                        <execution>

                            <phase>package</phase>

                            <goals>

                                <goal>run</goal>

                            </goals>

                        </execution>

                    </executions>

            </plugin>

    配置说明

    Port :服务器端口号

    Path :项目发布的路径,默认就是tomcat/webapps目录,可以指定深层次目录,"/",则默认在webapps目录下部署ROOT.war

    Url

    uriEncoding : 设置编码

    二、运行

    右键项目,Run --> Maven bulid Goals

     

    三、启动成功之后

    在目录下 targettomcat 服务器的目录

     

  • 相关阅读:
    MDX语法
    BI
    Lucene
    并行开发
    12 个最佳的免费网络监控工具
    ASP.NET 在IIS7.5下自定义404错误页面的方法
    MSBuild和Jenkins搭建持续集成环境
    MVC View显示详解(RenderBody,RenderPage,RenderSection,Partial)
    PDFsharp Samples
    C#获取程序集自动增加的版本号和编译时间
  • 原文地址:https://www.cnblogs.com/kali5k/p/13381869.html
Copyright © 2011-2022 走看看