添加模块“ spring integration redis”,该模块输出“ XXX不适合所有BeanPostProcessor处理”

问题描述

我正在集成spring integration-redis模块,以便使用RedisLockRegistry。但是我在Spring Boot启动时得到了以下日志。

19: 2020/09/11 21:02:25,006 2312 [INFO] [main] [integration.config.DefaultConfiguringbeanfactoryPostProcessor.registerErrorChannel(DefaultConfiguringbeanfactoryPostProcessor.java:213)] : No bean named 'errorChannel' has been explicitly defined. Therefore,a default PublishSubscribeChannel will be created.
21: 2020/09/11 21:02:25,012 2318 [INFO] [main] [integration.config.DefaultConfiguringbeanfactoryPostProcessor.registerTaskScheduler(DefaultConfiguringbeanfactoryPostProcessor.java:300)] : No bean named 'taskScheduler' has been explicitly defined. Therefore,a default ThreadPoolTaskScheduler will be created.
23: 2020/09/11 21:02:25,015 2321 [INFO] [main] [integration.config.DefaultConfiguringbeanfactoryPostProcessor.registerHeaderChannelRegistry(DefaultConfiguringbeanfactoryPostProcessor.java:460)] : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore,a default DefaultHeaderChannelRegistry will be created.
25: 2020/09/11 21:02:25,073 2379 [INFO] [main] [context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:335)] : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
27: 2020/09/11 21:02:25,115 2421 [INFO] [main] [context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:335)] : Bean 'integrationChannelResolver' of type [org.springframework.integration.support.channel.beanfactoryChannelResolver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
29: 2020/09/11 21:02:25,119 2425 [INFO] [main] [context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:335)] : Bean 'integrationdisposableautocreatedBeans' of type [org.springframework.integration.config.annotation.disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

1。如何创建errorChannel bean,taskScheduler bean和ThreadPoolTask​​Scheduler bean,以便我可以像警告一样获取这些信息的网格?

2。IntegrationManagementConfiguration,integrationChannelResolver和IntegrationdisposableautocreatedBeans是否对我的应用程序造成了问题?

3。如何解决以下日志的这种情况?

解决方法

这些仅仅是INFO日志消息。完全无害。您可能没有打开整个org.springframework类别的INFO来查看来自其他项目的更多类似消息。

实际上,前三个只是告诉我们将要创建默认bean。我们可能会考虑将这些消息移至DEBUG甚至TRACE级别...

IntegrationManagementConfiguration的那个没关系,因为这个是@Configuration的一个类,可能没有一个“有资格得到处理”。 Disposables的最后一个也无关紧要,因为该类受程序包保护,并且没有人真的会以某种方式对其进行后处理。

您的日志中最危险的是BeanFactoryChannelResolver用,但是只要您使用框架提供的任何内容,一切都会很好。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...