jetty和Tomcat插件配置

释放双眼,带上耳机,听听看~!
<!-- jetty 插件 -->
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.4.11.v20180605</version>
        <configuration>
          <!-- 热部署,每10秒扫描一次 -->
          <scanIntervalSeconds>10</scanIntervalSeconds>
          <!-- 可指定当前项目的站点名 -->
          <contextPath>/test</contextPath>
          <connectors>
            <connector implementation="org.eclipse.jetty.nio.SelectChannelConnector">
              <port>9090</port>  <!-- 设置启动的端口号 -->
            </connector>
          </connectors>
        </configuration>
      </plugin>
      <!-- Tomcat 插件 -->
      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <port>8081</port> <!-- 启动端口 默认:8080 -->
          <path>/test</path> <!-- 项目的站点名,即对外访问路径 -->
          <uriEncoding>UTF-8</uriEncoding> <!-- 字符集编码 默认:ISO-8859-1 -->
          <server>tomcat7</server> <!-- 服务器名称 -->
        </configuration>
      </plugin>

给TA打赏
共{{data.count}}人
人已打赏
代码

MySQL修改数据表中的字段名

2018-6-25 22:46:00

代码

WordPress搬家完整详细教程及换域名

2019-6-4 14:27:45

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索