Introduce enableAnnotations in global IntegrationProperties#11038
Introduce enableAnnotations in global IntegrationProperties#11038mjd507 wants to merge 1 commit into
enableAnnotations in global IntegrationProperties#11038Conversation
the value default to true but can be set to false via: 1. adding one line config `spring.integration.annotations.enable=false` into the classpath file `spring.integration.properties` 2. defining a new `integrationGlobalProperties` bean with `setEnableAnnotations(false)`. Also add a test to demonstrate the performance improvement when turnoff the annotation processing. see: `MessagingAnnotationsConfigurationTests.testEnableVersusDisablePerformance` Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
|
Hey, @mjd507 ! Thank you very much for all the help and we really appreciate your effort, flexibility and critics. Sorry to say that, but this is another attempt we have to reject. So, after looking into Spring Boot and specifically integration auto-configuration, I have realized that such a global property won't have effect because it is not mapped anyhow in there. So, without introducing such a property into Spring Boot, we cannot have a gain just for Spring Integration. Thank you again and let's continue brain-storming in the issue! |
the value default to true but can be set to false via:
spring.integration.annotations.enable=falseinto the classpath filespring.integration.propertiesintegrationGlobalPropertiesbean withsetEnableAnnotations(false).Also add a test to demonstrate the performance improvement when turnoff the annotation processing. see:
MessagingAnnotationsConfigurationTests.testEnableVersusDisablePerformance