前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >项目启动后失败,报Unregistering JMX-exposed beans on shutdown

项目启动后失败,报Unregistering JMX-exposed beans on shutdown

作者头像
CBeann
发布2023-12-25 15:54:37
1370
发布2023-12-25 15:54:37
举报
文章被收录于专栏:CBeann的博客CBeann的博客

问题:

我是在创建SpringBoot项目时候,项目跑不起来,控制台打印的是

  .   ____          _            __ _ _  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )   '  |____| .__|_| |_|_| |_\__, | / / / /  =========|_|==============|___/=/_/_/_/  :: Spring Boot ::        (v1.4.7.RELEASE) 2017-10-02 08:47:16.734  INFO 4048 --- [           main] c.e.demo.SpringBootTestApplication       : Starting SpringBootTestApplication on DESKTOP-7O0ES0O with PID 4048 (E:\stsWorkSpace\SpringBoot_Test\target\classes started by 柴火 in E:\stsWorkSpace\SpringBoot_Test) 2017-10-02 08:47:16.734  INFO 4048 --- [           main] c.e.demo.SpringBootTestApplication       : No active profile set, falling back to default profiles: default 2017-10-02 08:47:16.812  INFO 4048 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@df27fae: startup date [Mon Oct 02 08:47:16 CST 2017]; root of context hierarchy 2017-10-02 08:47:17.890  INFO 4048 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup 2017-10-02 08:47:17.921  INFO 4048 --- [           main] c.e.demo.SpringBootTestApplication       : Started SpringBootTestApplication in 1.634 seconds (JVM running for 2.256) 2017-10-02 08:47:17.921  INFO 4048 --- [       Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@df27fae: startup date [Mon Oct 02 08:47:16 CST 2017]; root of context hierarchy 2017-10-02 08:47:17.937  INFO 4048 --- [       Thread-1] o.s.j.e.a.AnnotationMBeanExporter        :Unregistering JMX-exposed beans on shutdown

解决办法:

pom文件中有一个这样的依赖

代码语言:javascript
复制
<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
		</dependency>

修改为

代码语言:javascript
复制
<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-03-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题:
  • 解决办法:
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档