Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法通过 url(HTTP 请求)关闭 Jetty 服务器?问题是我需要关闭已由另一个项目启动的服务器。
谢谢
使用 jetty-server 包中的 ShutdownHandler。示例设置在 javadoc 中。
http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/server/handler/ShutdownHandler.html