本文主要是介绍ConflictingBeanDefinitionException: Annotation-specified bean name 'errorPageFilter',希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Idea CE 下创建的基于 maven 的 Spring Boot 项目,在使用 命令启动时出现错误。
完整错误信息:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.3.RELEASE:run (default-cli) on project testboot: An exception occurred while running. null: InvocationTargetException: Failed to parse configuration class [Application]; nested exception is 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] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solution
这篇关于ConflictingBeanDefinitionException: Annotation-specified bean name 'errorPageFilter'的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!