gpt4 book ai didi

java - 你如何摆脱 ConfigurationPropertiesRebinderAutoConfiguration INFO 日志消息

转载 作者:行者123 更新时间:2023-12-01 14:28:21 24 4
gpt4 key购买 nike

使用 spring-cloud-config-starter 时,日志中会出现以下消息

INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$51f9b0ce] 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但它仍然出现。

最佳答案

内部类名需要在 application.yml 中进行特殊处理:

logging:
level:
org.springframework.context.support.[PostProcessorRegistrationDelegate$BeanPostProcessorChecker]: WARN

例如: https://github.com/spring-projects/spring-kafka/issues/714

要在属性键名中包含这些“特殊字符”,您需要利用 Spring Boot 中基于映射的绑定(bind)规则: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Configuration-Binding#map-based-binding

关于java - 你如何摆脱 ConfigurationPropertiesRebinderAutoConfiguration INFO 日志消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54795633/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com