当我使用命令java -jar mypro-0.0.1-SNAPSHOT.jar --logging.level.root=TRACE
时,springboot失败,但是某些计算机可以工作,
springboot版本是2.0.0.RELEASE,
<group>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
日志为关注者:
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.LongEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ShortEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ByteBufferEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ByteArrayEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : starting org.springframework.boot.web.embedded.jetty.JettyEmbeddedErrorHandler@7d0b7e3c
2018-07-07 18:02:27.488 INFO 21534 --- [ main] o.e.j.s.h.ContextHandler : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE}
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.ServletContextInitializerConfiguration@5824a83d
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.autoconfigure.websocket.servlet.JettyWebSocketServletWebServerCustomizer$1@537f60bf
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory$1@5677323c
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory$2@18df8434
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : starting org.eclipse.jetty.server.handler.ErrorHandler@a38c7fe
2018-07-07 18:02:27.489 INFO 21534 --- [ main] o.e.j.s.Server : Started @4487ms
2018-07-07 18:02:27.512 DEBUG 21534 --- [ main] o.e.j.s.Server : doStop org.eclipse.jetty.server.Server@2dc54ad4[9.4.8.v20171121]
2018-07-07 18:02:27.513 DEBUG 21534 --- [ main] o.e.j.s.Server : Graceful shutdown org.eclipse.jetty.server.Server@2dc54ad4[9.4.8.v20171121] by
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.Server@2dc54ad4[9.4.8.v20171121]
2018-07-07 18:02:27.514 INFO 21534 --- [ main] o.e.j.s.session : Stopped scavenging
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.handler.ErrorHandler@a38c7fe
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],UNAVAILABLE}
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.springframework.boot.web.embedded.jetty.JettyEmbeddedErrorHandler@7d0b7e3c
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.session.SessionHandler1420232606==dftMaxIdleSec=1800
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.security.ConstraintSecurityHandler@26e356f0
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.springframework.boot.web.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler@4b8ee4de
2018-07-07 18:02:27.517 INFO 21534 --- [ main] o.e.j.s.h.ContextHandler : Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],UNAVAILABLE}
答案 0 :(得分:0)
称为Server.stop()
的事物正在执行服务器的正常停止。
带有...的记录行
o.e.j.s.Server : doStop org.eclipse.jetty.server.Server@2dc54ad4[9.4.8.v20171121]
...正在告诉你这个。
您可以在Server.doStop()
(用于处理.stop()
中的LifeCycle
命令的代码)中添加断点,并查看该调用来自何处。