idea jetty:run 启动

1.首先pom    文件

<!-- jetty插件 -->
<plugin>
   <groupId>org.mortbay.jetty</groupId>
   <artifactId>jetty-maven-plugin</artifactId>
   <version>${jetty.version}</version>
   <configuration>
      <webAppConfig>
         <contextPath>/</contextPath>
      </webAppConfig>
   </configuration>
</plugin>
<jetty.version>7.6.14.v20131031</jetty.version>

2.添加jetty:run


3.启动jetty


4.添加到工具(在3图run右键)


5.也可以在maven配置效果是一样的不过参数可能会错误就不误导大家了


对了我的idea是2017.3的

扫描二维码关注公众号,回复: 7863693 查看本文章

猜你喜欢

转载自www.cnblogs.com/jpfss/p/11865867.html