0

我有一个带注释的 bean,@Component<context:component-scan/>使用<context:property-placeholder/>.

4

1 回答 1

2

用 注释字段@Value("propertyName")

请参阅相关问题:@Controller 类中的 Spring @Value 注释未评估属性文件中的值

于 2013-04-03T17:21:16.260 回答