Spring Annotations difference in the @Configuration and @Configurable

@Configuration
The annotation can be used in place of XML documents.
Before we configure bean, are written in applicationContext.xml file.
With this comment, we can write a class at its top with the comment. That configuration class.
In the configuration class can add annotations @Bean defined therein on Bean method

@Configurable
Now suppose we want to use dependency injection in Spring non-management class;
for example: manual new object out, under normal circumstances, is unable Spring dependency injection, this time you can use @Configurable comment;

Guess you like

Origin www.cnblogs.com/fanrenren/p/11372896.html