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
![](https://img2018.cnblogs.com/blog/1112483/201911/1112483-20191115133752107-1643208602.png)
3.启动jetty
4.添加到工具(在3图run右键)
5.也可以在maven配置效果是一样的不过参数可能会错误就不误导大家了
对了我的idea是2017.3的
扫描二维码关注公众号,回复:
7863693 查看本文章
![](/qrcode.jpg)