添加模块 "spring integration redis" 打印出“XXX 不符合所有 BeanPostProcessors 处理的条件
add module "spring integration redis" which print out "XXX is not eligible for getting processed by all BeanPostProcessors
我正在集成 spring integration-redis 模块,以便使用 RedisLockRegistry。但我在 spring 启动时得到了以下日志。
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.how 创建 errorChannel bean、taskScheduler bean 和 ThreadPoolTaskScheduler bean 以便我可以获得这些信息的网格,如警告?
2.do IntegrationManagementConfiguration、integrationChannelResolver 和 integrationDisposableAutoCreatedBeans 对我的应用程序造成问题?
3.how 为以下日志修复这些情况?
这些只是 INFO 日志消息。完全无害。您可能没有打开整个 org.springframework
类别的信息以查看来自其他项目的更多类似消息。
事实上,前 3 个只是告诉我们将要创建默认 bean。我们可能会考虑将这些消息移至 DEBUG 或什至 TRACE 级别...
IntegrationManagementConfiguration
的那个无关紧要,因为这个是 @Configuration
class,可能没有一个“有资格被处理”。
Disposables
的最后一个也无关紧要,因为这个 class 是包保护的,没有人真的会以某种方式 post-process 它。
您的日志中最危险的是 BeanFactoryChannelResolver
,但只要您使用框架为您提供的任何内容,一切都会很好。
我正在集成 spring integration-redis 模块,以便使用 RedisLockRegistry。但我在 spring 启动时得到了以下日志。
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.how 创建 errorChannel bean、taskScheduler bean 和 ThreadPoolTaskScheduler bean 以便我可以获得这些信息的网格,如警告?
2.do IntegrationManagementConfiguration、integrationChannelResolver 和 integrationDisposableAutoCreatedBeans 对我的应用程序造成问题?
3.how 为以下日志修复这些情况?
这些只是 INFO 日志消息。完全无害。您可能没有打开整个 org.springframework
类别的信息以查看来自其他项目的更多类似消息。
事实上,前 3 个只是告诉我们将要创建默认 bean。我们可能会考虑将这些消息移至 DEBUG 或什至 TRACE 级别...
IntegrationManagementConfiguration
的那个无关紧要,因为这个是 @Configuration
class,可能没有一个“有资格被处理”。
Disposables
的最后一个也无关紧要,因为这个 class 是包保护的,没有人真的会以某种方式 post-process 它。
您的日志中最危险的是 BeanFactoryChannelResolver
,但只要您使用框架为您提供的任何内容,一切都会很好。