1.下載
https://d1opms6zj7jotq.cloudfront.net/idea/ideaIU-2016.1.exe
2.創建項目
3.maven插件
在pom.xml文件中添加
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.10.v20150310</version>
<configuration>
<httpConnector>
<port>8080</port>
</httpConnector>
<webApp>
<contextPath>/test/</contextPath>
</webApp>
<stopKey />
<stopPort />
</configuration>
</plugin>
4.配置
5.測試
訪問:http://localhost:8080/test/