Unregistering JMX-exposed beans on shutdown解决方法

2018-04-17 15:12:44.627  INFO 7720 --- [           main] c.d.boot.provider.ProviderApplication    : Starting ProviderApplication on DESKTOP-06MMMKT with PID 7720 (E:\dubboSpringboot\dubbo-boot\dubbo-boot-provider\target\classes started by LYF in E:\dubboSpringboot\dubbo-boot)
2018-04-17 15:12:44.632  INFO 7720 --- [           main] c.d.boot.provider.ProviderApplication    : No active profile set, falling back to default profiles: default
2018-04-17 15:12:44.770  INFO 7720 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@646be2c3: startup date [Tue Apr 17 15:12:44 CST 2018]; root of context hierarchy
2018-04-17 15:12:46.357  INFO 7720 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2018-04-17 15:12:46.378  INFO 7720 --- [           main] c.d.boot.provider.ProviderApplication    : Started ProviderApplication in 2.252 seconds (JVM running for 3.518)
2018-04-17 15:12:46.379  INFO 7720 --- [       Thread-7] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@646be2c3: startup date [Tue Apr 17 15:12:44 CST 2018]; root of context hierarchy
2018-04-17 15:12:46.380  INFO 7720 --- [       Thread-7] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown

Process finished with exit code 0

如图:

Unregistering JMX-exposed beans on shutdown解决方法:

加入依赖如下:

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-tomcat</artifactId>
   <!--<scope>provided</scope>-->
</dependency>

成功:
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.7.RELEASE)

2018-04-17 15:15:12.404  INFO 15116 --- [           main] c.d.boot.provider.ProviderApplication    : Starting ProviderApplication on DESKTOP-06MMMKT with PID 15116 (E:\dubboSpringboot\dubbo-boot\dubbo-boot-provider\target\classes started by LYF in E:\dubboSpringboot\dubbo-boot)
2018-04-17 15:15:12.407  INFO 15116 --- [           main] c.d.boot.provider.ProviderApplication    : No active profile set, falling back to default profiles: default
2018-04-17 15:15:12.622  INFO 15116 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5d20e46: startup date [Tue Apr 17 15:15:12 CST 2018]; root of context hierarchy
2018-04-17 15:15:14.667  INFO 15116 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2018-04-17 15:15:14.678  INFO 15116 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-04-17 15:15:14.679  INFO 15116 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.20
2018-04-17 15:15:14.789  INFO 15116 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-04-17 15:15:14.789  INFO 15116 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2172 ms
2018-04-17 15:15:14.960  INFO 15116 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2018-04-17 15:15:14.966  INFO 15116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-04-17 15:15:14.966  INFO 15116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-04-17 15:15:14.966  INFO 15116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-04-17 15:15:14.966  INFO 15116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-04-17 15:15:15.209  INFO 15116 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5d20e46: startup date [Tue Apr 17 15:15:12 CST 2018]; root of context hierarchy
2018-04-17 15:15:15.275  INFO 15116 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-04-17 15:15:15.276  INFO 15116 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-04-17 15:15:15.315  INFO 15116 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-17 15:15:15.316  INFO 15116 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-17 15:15:15.351  INFO 15116 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-17 15:15:15.547  INFO 15116 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2018-04-17 15:15:15.615  INFO 15116 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2018-04-17 15:15:15.620  INFO 15116 --- [           main] c.d.boot.provider.ProviderApplication    : Started ProviderApplication in 3.607 seconds (JVM running for 4.859)

阅读更多 登录后自动展开
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页