Introduce 'value' alias for @Bean's 'name' attribute [SPR-14728] #19293
Comments
Sam Brannen commented Resolved in: 8f62b63 |
Juergen Hoeller commented Since this is so straightforward and consistent with our general annotation alias wrap-up story in 4.3, I've backported it to 4.3.3 as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sam Brannen opened SPR-14728 and commented
Since use cases exist for which a user need only supply the
name
attribute for an@Bean
method declaration, it would be beneficial to the user (in terms of usability) if the name could be supplied via an implicitvalue
attribute.For example, the following
@Bean
configuration for a Spring MVC controller that utilizes aBeanNameUrlHandlerMapping
:... could be simplified as follows:
No further details from SPR-14728
The text was updated successfully, but these errors were encountered: