您当前的位置: 首页 >  ar

Dongguo丶

暂无认证

  • 3浏览

    0关注

    472博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Invocation of destroy method failed on bean with name ‘scopedTarget.eurekaClient‘: org.springframewo

Dongguo丶 发布时间:2019-01-05 15:23:35 ,浏览量:3

Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframewo_StriverChuiYing的博客-CSDN博客

Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

这是因为client里不包含Tomcat的依赖,所以Spring容器无法创建一些实例,从而导致项目无法启动,只需在pom.xml文件中,加上web依赖即可:



org.springframework.boot

spring-boot-starter-web

关注
打赏
1638062488
查看更多评论
立即登录/注册

微信扫码登录

0.0402s