Skip to content

dont create a bean when not needed#1881

Merged
ryanjbaxter merged 2 commits intospring-cloud:3.1.xfrom
wind57:dont_create_http_refersh_trigger
Feb 25, 2025
Merged

dont create a bean when not needed#1881
ryanjbaxter merged 2 commits intospring-cloud:3.1.xfrom
wind57:dont_create_http_refersh_trigger

Conversation

@wind57
Copy link
Copy Markdown
Contributor

@wind57 wind57 commented Feb 22, 2025

No description provided.

@wind57 wind57 changed the title fix dont create a bean when not needed Feb 22, 2025
Signed-off-by: wind57 <[email protected]>

@Bean
@ConditionalOnMissingBean
@Profile({ NOT_AMQP_NOT_KAFKA })
Copy link
Copy Markdown
Contributor Author

@wind57 wind57 Feb 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am proposing to do this change here, create the HttpRefreshTrigger bean only when the profile is not bus-amqp and not bus-kafka

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should have been present initially, but I missed it too a while ago. It came out as I was working on refactoring ITs

@wind57 wind57 marked this pull request as ready for review February 22, 2025 21:59
@wind57
Copy link
Copy Markdown
Contributor Author

wind57 commented Feb 22, 2025

@ryanjbaxter let me know if you agree with this or not...

@ryanjbaxter ryanjbaxter added this to the 3.1.6 milestone Feb 25, 2025
@ryanjbaxter ryanjbaxter merged commit 2cc8c34 into spring-cloud:3.1.x Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done
Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants