扩展Spring——使用 Annotation将配置资源注入到Bean中

通过自定义注解类和扩展spring,把 Properties中的配置项自动注入需要使用它的Bean中。

个人感觉是比较实用的功能,是个新的思路。

文章有代码有说明,深入浅出,写的不错。

原文 http://www.blogjava.net/max/archive/2009/11/20/303112.html

你可能感兴趣的:(spring,annotation,properties,自定义)