场景
假如有以下属性文件dev.properties, 需要注入下面的tag
tag=123
需要声明的是:在使用@Value 注解 注入参数时,在当前类需要给该属性提供Setter 方法!!
1.通过PropertyPlaceholderConfigurer假如有以下属性文件dev.properties, 需要注入下面的tag
tag=123
需要声明的是:在使用@Value 注解 注入参数时,在当前类需要给该属性提供Setter 方法!!
1.通过PropertyPlaceholderConfigurer