Skip to content

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Aug 8, 2025

It's friendly for Spring Boot's @ConditionalOnMissingBean, and:

When defining a Spring @Bean method, it is generally recommended to declare the most specific type possible as the method's return type. This means returning the concrete class of the bean, or the most specific interface that the bean implements and through which it will be referenced in the application.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 8, 2025
@jzheaux jzheaux self-assigned this Aug 13, 2025
@jzheaux jzheaux added in: config An issue in spring-security-config type: enhancement A general enhancement status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 13, 2025
quaff added 2 commits August 14, 2025 08:38
…ocessor instead of BeanFactoryPostProcessor

It's friendly for Spring Boot's `@ConditionalOnMissingBean`, and:

>> When defining a Spring `@Bean` method, it is generally recommended to declare the most specific type possible as the method's return type. This means returning the concrete class of the bean, or the most specific interface that the bean implements and through which it will be referenced in the application.

Signed-off-by: Yanming Zhou <[email protected]>
@jzheaux jzheaux removed the status: waiting-for-feedback We need additional information before we can continue label Aug 21, 2025
@jzheaux jzheaux added this to the 7.0.0-M3 milestone Aug 21, 2025
@jzheaux jzheaux merged commit 41162aa into spring-projects:main Aug 21, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants