1.新建属性class?
? ??@Component
????@PropertySource({"classpath:application.properties"})
????@ConfigurationProperties(prefix="test")
2.寻找配置文件classpath:application.properties ,过滤前缀“ prefix="test" ”
引用
1.新建属性class?
? ??@Component
????@PropertySource({"classpath:application.properties"})
????@ConfigurationProperties(prefix="test")
2.寻找配置文件classpath:application.properties ,过滤前缀“ prefix="test" ”
引用