您当前的位置: 首页 >  ar

Dongguo丶

暂无认证

  • 0浏览

    0关注

    472博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

springboot警告:ApplicationContext is unlikely to start due to a @ComponentScan of the default package

Dongguo丶 发布时间:2018-07-23 23:11:01 ,浏览量:0

1. 警告解读
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
  • 1

如果你的springboot项目报了这个警告,那么你的项目会无法正常运行。

// 该警告解释为 : ApplicationContext 不能从一个组件的默认包启动
  • 1
2. 如何解决

既然他说该类不能从组件的默认包启动,那就给他建立一个包好了。

// 一般发出这个警告的原因是你把启动类直接放在的src目录下面。
// 你需要在src目录下面再建一个包,比如controlcenter,然后把启动类放到controlcenter下面。
关注
打赏
1638062488
查看更多评论
立即登录/注册

微信扫码登录

0.0404s