jetty与jdk的版本关系
http://www.eclipse.org/jetty/about.html
在pom.xml中配制jetty插件
<build>
<plugins>
......
</plugins>
</build>
<!-- jerry 插件 -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.24.v20180605</version>
<configuration>
<scanIntervalSeconds>5</scanIntervalSeconds>
<webApp>
<contextPath>/codeGen</contextPath>
</webApp>
<httpConnector>
<port>8083</port>
</httpConnector>
</configuration>
</plugin>