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 solutions, please read the follow

在Idea CE环境下,一个基于Maven的Spring Boot项目启动时遇到问题,错误信息涉及到@ComponentScan注解。经过搜索找到解决方案,问题与项目中的特定配置有关。
最低0.47元/天 解锁文章
897

被折叠的 条评论
为什么被折叠?



