SpringMVC 项目配置 jetty 容器
pom.xml中添加: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.9.v20160517</version> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> 启动jetty cd到pom.xml文件所在位置, 运行 mvn jetty:run -Djetty.port=9080 来源: oschina 链接: https://my.oschina.net/u/2548201/blog/1800663