你如何摆脱 ConfigurationPropertiesRebinderAutoConfiguration INFO 日志消息
How do you get rid of ConfigurationPropertiesRebinderAutoConfiguration INFO log message
使用 spring-cloud-config-starter 时,日志中会出现以下消息
INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$f9b0ce] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
我试过了
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate$$BeanPostProcessorChecker: WARN
root: WARN
和
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker: WARN
root: WARN
和
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate.BeanPostProcessorChecker: WARN
root: WARN
在 application.yml
配置服务器中,在 bootstrap.yml
但它仍然出现。
内部 class 名称需要在 application.yml 中进行特殊处理:
logging:
level:
org.springframework.context.support.[PostProcessorRegistrationDelegate$BeanPostProcessorChecker]: WARN
参见示例:https://github.com/spring-projects/spring-kafka/issues/714
要在 属性 键名中包含这些 "special characters",您需要利用 Spring 引导中基于映射的绑定规则:https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Configuration-Binding#map-based-binding
使用 spring-cloud-config-starter 时,日志中会出现以下消息
INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$f9b0ce] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
我试过了
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate$$BeanPostProcessorChecker: WARN
root: WARN
和
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker: WARN
root: WARN
和
logging:
level:
org.springframework.context.support.PostProcessorRegistrationDelegate.BeanPostProcessorChecker: WARN
root: WARN
在 application.yml
配置服务器中,在 bootstrap.yml
但它仍然出现。
内部 class 名称需要在 application.yml 中进行特殊处理:
logging:
level:
org.springframework.context.support.[PostProcessorRegistrationDelegate$BeanPostProcessorChecker]: WARN
参见示例:https://github.com/spring-projects/spring-kafka/issues/714
要在 属性 键名中包含这些 "special characters",您需要利用 Spring 引导中基于映射的绑定规则:https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Configuration-Binding#map-based-binding