maven项目,用jetty插件运行,对热部署的支持比较好。maven的pom文件加入下面代码
	<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.5.v20120716</version>
<configuration>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8888</port> <!-- 修改访问端口,默认8080 -->
</connector>
</connectors>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<!-- web项目根路径 -->
<contextPath>/</contextPath>
</webApp>
</configuration>
</plugin>
 
1
    <plugin>
2
        <groupId>org.mortbay.jetty</groupId> 
3
        <artifactId>jetty-maven-plugin</artifactId>
4
        <version>8.1.5.v20120716</version>
5
        <configuration>
6
            <connectors>
7
                <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
8
                    <port>8888</port> <!-- 修改访问端口,默认8080 -->
9
                </connector>
10
            </connectors>
11
            <scanIntervalSeconds>10</scanIntervalSeconds>
12
            <webApp>
13
                <!-- web项目根路径 -->
14
                <contextPath>/</contextPath>
15
            </webApp>
16
        </configuration>
17
    </plugin>
        然后运行命令是 jetty:run

最新文章

  1. WCF (413) Request Entity Too Large
  2. Error:No suitable device found: no device found for connection &quot;System eth0&quot;
  3. STL库中的正态分布函数
  4. PHP内核的学习--创建PHP扩展
  5. CSS hack 汇总
  6. 关于git提交的自己的理解
  7. ytu 2029: C语言实验——温度转换(水题)
  8. iOS UILabel详解
  9. PHP Warning: date(): It is not safe to rely on the system&#39;s timezone settings.
  10. HDOJ2019数列有序!
  11. [转载]async &amp; await 的前世今生
  12. Android:Style和Theme
  13. 玩转Android之加速度传感器的使用,模仿微信摇一摇
  14. Font-Awesome IIS下不显示问题
  15. IoC容器Autofac正篇之类型注册(五)
  16. 权限的分类(shiro项目中来的五)
  17. OGG微服务架构入门
  18. html之input标签(11)
  19. Yahoo团队网站性能优化的35条黄金守则
  20. bzoj1026: [SCOI2009]windy数(数位dp)

热门文章

  1. Postman&#160;Postman测试接口之POST提交本地文件数据
  2. 6.1 函数的返回值、匿名函数lambda、filter函数、map函数、reduce函数
  3. CSS3动画详解(图文教程)
  4. Azure 中的虚拟网络和虚拟机
  5. Django之cookie&amp;session
  6. java读取txt文件的2中方法---并将内容(每一行以固定的字符分割切成2段)存到map中去
  7. [PC]可用于Windows Server 2008 R2的Xbox One手柄、接收器驱动
  8. excle函数
  9. BZOJ 1087 互不侵犯King 状态压缩DP
  10. Winfrom 使用WCF 实现双工通讯