springboot启动类启动的时候报错:Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'errorPageFilter' for bean class [org.springframework.boot.web.support.ErrorPageFilter] conflicts with existing, non-compatible bean definition of same name and class [org.springframework.boot.context.web.ErrorPageFilter]

并且有这个提示:

** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

这个是主要因为把启动类放在了顶级包Java里面,而没有重新创个包放。如下图,这样就会报错,如果放在baichen这个包里面就不会报错。

springboot启动报错:Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException:

相关文章:

  • 2021-07-20
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-06-01
相关资源
相似解决方案