maven中添加jetty运行插件
2024-08-22 02:11:26
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
最新文章
- WCF (413) Request Entity Too Large
- Error:No suitable device found: no device found for connection ";System eth0";
- STL库中的正态分布函数
- PHP内核的学习--创建PHP扩展
- CSS hack 汇总
- 关于git提交的自己的理解
- ytu 2029: C语言实验——温度转换(水题)
- iOS UILabel详解
- PHP Warning: date(): It is not safe to rely on the system&#39;s timezone settings.
- HDOJ2019数列有序!
- [转载]async &; await 的前世今生
- Android:Style和Theme
- 玩转Android之加速度传感器的使用,模仿微信摇一摇
- Font-Awesome IIS下不显示问题
- IoC容器Autofac正篇之类型注册(五)
- 权限的分类(shiro项目中来的五)
- OGG微服务架构入门
- html之input标签(11)
- Yahoo团队网站性能优化的35条黄金守则
- bzoj1026: [SCOI2009]windy数(数位dp)
热门文章
- Postman&#160;Postman测试接口之POST提交本地文件数据
- 6.1 函数的返回值、匿名函数lambda、filter函数、map函数、reduce函数
- CSS3动画详解(图文教程)
- Azure 中的虚拟网络和虚拟机
- Django之cookie&;session
- java读取txt文件的2中方法---并将内容(每一行以固定的字符分割切成2段)存到map中去
- [PC]可用于Windows Server 2008 R2的Xbox One手柄、接收器驱动
- excle函数
- BZOJ 1087 互不侵犯King 状态压缩DP
- Winfrom 使用WCF 实现双工通讯