springboot2.2.6.RELEASE chapter1

2020-04-04  本文已影响0人  淼哥1986
my.servers[0]=dev.example.com
my.servers[1]=another.example.com
@ConfigurationProperties(prefix="my")
public class Config {
    private List<String> servers = new ArrayList<String>();
    public List<String> getServers() {
        return this.servers;
    }
}
上一篇下一篇

猜你喜欢

热点阅读