添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi

最新推荐文章于 2024-05-18 15:47:06 发布
最新推荐文章于 2024-05-18 15:47:06 发布 阅读量1.2w

错误信息:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.SsoServerApplication]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpointAutoConfiguration
at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:597) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser.access 900(ConfigurationClassParser.java:109) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser 9 0 0 ( C o n f i g u r a t i o n C l a s s P a r s e r . j a v a : 1 0 9 ) [ s p r i n g c o n t e x t 5 . 2 . 2 . R E L E A S E . j a r : 5 . 2 . 2 . R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . a n n o t a t i o n . C o n f i g u r a t i o n C l a s s P a r s e r DeferredImportSelectorGroupingHandler.lambda$processGroupImports 1(ConfigurationClassParser.java:805) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at java.util.ArrayList.forEach(ArrayList.java:1257) ~[na:1.8.0_161] at org.springframework.context.annotation.ConfigurationClassParser 1 ( C o n f i g u r a t i o n C l a s s P a r s e r . j a v a : 8 0 5 ) [ s p r i n g c o n t e x t 5 . 2 . 2 . R E L E A S E . j a r : 5 . 2 . 2 . R E L E A S E ] a t j a v a . u t i l . A r r a y L i s t . f o r E a c h ( A r r a y L i s t . j a v a : 1 2 5 7 ) [ n a : 1 . 8 . 0 1 6 1 ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . a n n o t a t i o n . C o n f i g u r a t i o n C l a s s P a r s e r DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:801) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:771) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:325) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:242) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

解决办法:在yaml文件中带单引号不报错,但是properties文件中不能带
management:
endpoints:
web:
exposure:
include: '
在properties中应该修改为:
management.endpoints.web.exposure.exclude=

Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi 错误信息:org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.SsoServerApplication]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframe
以下是错误信息 2020-08-04 10:41:45.441 [main] ERROR [ org . springframework . boot .SpringApplication:840] - Application startup failed java.lang.IllegalStateException: Error processing condition on org . springframework . boot . actuate . autoconfigure .EndpointWebMvcAutoConf
引入nacos 报错java.lang.IllegalStateException: Error processing condition on com.alibaba.cloud.nacos.loa
搭建用spring boot 搭建springcloud项目时出现这个问题. java.lang.IllegalStateException: Error processing condition on org . springframework . boot . autoconfigure .context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer at org . springframework . boot .autoco
spring boot 报错 Error processing condition on org . springframework . boot . autoconfigure .context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer java.lang.IllegalStateException: Error processing condition on org . springframework .boo
Error processing condition on org . springframework . boot . autoconfigure .jdbc.DataSourceAutoConfiguratio
关于 " Error processing condition on org . springframework . boot . actuate . autoconfigure . audit . Audit AutoConfiguration" 这个错误,通常是由于缺少相关的依赖或配置问题引起的。以下是一些可能的解决方案: 1. 确保你的项目中包含了正确的依赖。在这种情况下,你需要添加 Spring Boot Actuator 的依赖。你可以在项目的构建文件(如 Maven 的 pom.xml 或 Gradle 的 build.gradle)中添加以下依赖: ```xml <dependency> <groupId> org . springframework . boot </groupId> <artifactId>spring- boot -starter-actuator</artifactId> </dependency> 2. 检查你的配置文件,确保正确配置了 Audit AutoConfiguration。你可以尝试在你的配置文件中添加以下内容: ```yaml management: audit : enabled: true 3. 确保你的代码中没有使用过时的或不兼容的配置。如果有,请更新为最新版本的 Spring Boot 和相关组件。 4. 清理并重新构建项目。有时候构建过程中会出现缓存或编译错误,导致条件处理出错。 通过采取这些步骤,你应该能够解决 " Error processing condition on org . springframework . boot . actuate . autoconfigure . audit . Audit AutoConfiguration" 这个问题。如果问题仍然存在,请提供更多的错误信息和代码细节,以便更好地帮助你解决问题。
Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi 12000