maven jetty插件配置

maven jetty插件配置:

<plugin>

<groupId>org.mortbay.jetty</groupId>

<artifactId>jetty-maven-plugin</artifactId>

<configuration>

<scanIntervalSeconds>10</scanIntervalSeconds>

<webApp>

<contextPath>/student</contextPath><!--访问路径如 localhost:8888/student-->

</webApp>

<connectors>

<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">

<port>8888</port><!-- 端口 -->

<maxIdleTime>60000</maxIdleTime><!-- 连接超时 -->

</connector>

</connectors>

</configuration>

</plugin>

运行jetty    命令      jetty:run

更多详情 jetty插件官网    http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin

猜你喜欢

转载自qiyang199132.iteye.com/blog/1691871