• BeanDefinitionStoreException: Failed to read candidate component class


     

    BeanDefinitionStoreException: Failed to read candidate component class
    Caused by: org.springframework.core.annotation.AnnotationConfigurationException: @AliasFor declaration on attribute [proxyBeanMethods] in annotation [org.springframework.boot.SpringBootConfiguration] is missing required 'attribute' value.
    1. org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/home/work/project/WEB-INF/lib/compass-sdk-0.0.5-SNAPSHOT.jar!/com/baidu/bpitsns/compass/CompassSdkApplication.class]; nested exception is org.springframework.core.annotation.AnnotationConfigurationException: @AliasFor declaration on attribute [proxyBeanMethods] in annotation [org.springframework.boot.SpringBootConfiguration] is missing required 'attribute' value.
    2. at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:303) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    3. at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:248) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    4. at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:87) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    5. at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    6. at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1411) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    7. at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    8. at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    9. at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    10. at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    11. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    12. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    13. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    14. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    15. at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    16. at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    17. at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    18. at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    19. at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    20. at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    21. at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    22. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    23. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:666) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    24. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:632) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    25. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:680) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    26. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:551) ~[spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    27. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:492) [spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    28. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136) [spring-webmvc-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    29. at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:3.1.FR]
    30. at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144) [catalina.jar:8.5.32]
    31. at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) [catalina.jar:8.5.32]
    32. at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983) [catalina.jar:8.5.32]
    33. at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4978) [catalina.jar:8.5.32]
    34. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5290) [catalina.jar:8.5.32]
    35. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.32]
    36. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421) [catalina.jar:8.5.32]
    37. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411) [catalina.jar:8.5.32]
    38. at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_171]
    39. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
    40. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
    41. at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
    42. Caused by: org.springframework.core.annotation.AnnotationConfigurationException: @AliasFor declaration on attribute [proxyBeanMethods] in annotation [org.springframework.boot.SpringBootConfiguration] is missing required 'attribute' value.
    43. at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.getAliasedAttributeName(AnnotationUtils.java:2162) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    44. at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.<init>(AnnotationUtils.java:1953) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    45. at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.from(AnnotationUtils.java:1936) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    46. at org.springframework.core.annotation.AnnotationUtils.getAttributeAliasNames(AnnotationUtils.java:1626) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    47. at org.springframework.core.annotation.AnnotationUtils.isSynthesizable(AnnotationUtils.java:1585) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    48. at org.springframework.core.annotation.AnnotationUtils.synthesizeAnnotation(AnnotationUtils.java:1368) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    49. at org.springframework.core.annotation.AnnotationUtils.synthesizeAnnotationArray(AnnotationUtils.java:1472) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    50. at org.springframework.core.annotation.AnnotationUtils.getAnnotations(AnnotationUtils.java:229) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    51. at org.springframework.core.type.classreading.AnnotationAttributesReadingVisitor.doVisitEnd(AnnotationAttributesReadingVisitor.java:76) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    52. at org.springframework.core.type.classreading.RecursiveAnnotationAttributesVisitor.visitEnd(RecursiveAnnotationAttributesVisitor.java:48) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    53. at org.springframework.asm.ClassReader.readAnnotationValues(ClassReader.java:1802) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    54. at org.springframework.asm.ClassReader.accept(ClassReader.java:642) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    55. at org.springframework.asm.ClassReader.accept(ClassReader.java:508) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    56. at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:64) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    57. at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:98) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    58. at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:102) ~[spring-core-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    59. at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:279) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    60. ... 39 more

  • 相关阅读:
    我国数据泄露事件超5100万起,全球排名第三
    vue使用腾讯地图获取经纬度和逆解析获取详细地址
    2022-31周 项目问题整理
    Nginx 1.26.0 爆 HTTP/3 QUIC 漏洞,建议升级更新到 1.27.0
    优先级队列【堆】——数据结构
    Vue3 企业级优雅实战 - 组件库框架 - 3 搭建组件库开发环境
    容器的通俗讲解
    ES的一些学习操作
    golang leetcode算法小抄
    Android 分区和内存监控
  • 原文地址:https://blog.csdn.net/FlyingJiang/article/details/134031346