在 pom 中的 build>plugins 添加 plugin 配置
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.10.v20150310</version>
<configuration>
<!-- 配合stopPort使用,监听停止 jetty 程序的标识 -->
<stopKey>stop</stopKey>
<!-- 监听停止 jetty 服务的端口 -->
<stopPort>8088</stopPort>
<!-- http 连接器信息 -->
<httpConnector>
<port>8080</port>
<host>localhost</host>
</httpConnector>
<!-- 热部署扫描间隔时间 -->
<scanIntervalSeconds>1</scanIntervalSeconds>
</configuration>
</plugin>使用命令 mvn jetty:run 运行
继续阅读与本文标签相同的文章
上一篇 :
Linux的sed命令
下一篇 :
快速学习Jetty-Jetty的独立部署
-
后端基于方法的权限控制--Spirng-Security
2026-05-21栏目: 教程
-
开源免费版RPA:详细指南[2.0版]
2026-05-21栏目: 教程
-
MySQL Explain详解
2026-05-21栏目: 教程
-
Liunx C 编程之多线程与Socket
2026-05-21栏目: 教程
-
字节跳动入局全网搜索:从0到1打造通用搜索引擎
2026-05-21栏目: 教程
