zoukankan      html  css  js  c++  java
  • springboot启动报错:Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException:

    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这个包里面就不会报错。

  • 相关阅读:
    phpdocumentor生成代码注释文档(linux)
    phpstorm扩展
    es教程
    康威定律
    k8s
    tidb调研
    netty 在线教程
    McQueenRPC源码阅读
    DIY一些基于netty的开源框架
    性能测试
  • 原文地址:https://www.cnblogs.com/baichendongyang/p/13235500.html
Copyright © 2011-2022 走看看