properties注入
- @PropertySource
properties文件中的字段自动匹配BairongProperties的字段
@PropertySource("classpath:properties/bairong.properties")
public class BairongProperties {
......
}
- -
@PropertySource("classpath:properties/bairong.properties")
public class BairongProperties {
......
}