@Bean: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=Internal=
=Internal=


* [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Beans|Spring Dependency Injection and Inversion of Control Container Concepts]]
* [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#.40Configuration.2F.40Bean|Spring Dependency Injection and Inversion of Control Container Concepts]]


=Overview=
=Overview=


The @Bean annotation indicates that the object returned by the methods it annotates are [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Beans|beans]] and they should be added to the [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Application_Context|application context]]. By default, their respective [[Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#Bean_ID|bean IDs]] will be the same as the names of the methods that define them.
{{Internal|Spring_Dependency_Injection_and_Inversion_of_Control_Container_Concepts#.40Configuration.2F.40Bean|Spring Dependency Injection and Inversion of Control Container Concepts @Bean}}

Revision as of 20:55, 4 November 2018