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)

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值