0

我正在集成 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.如何解决以下日志的这些情况?

4

1 回答 1

0

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

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

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

您的日志中最危险的是 . BeanFactoryChannelResolver,但只要您使用框架为您提供的任何东西,一切都会好起来的。

于 2020-09-11T15:02:49.773 回答