- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
- springboot2.2.6.RELEASE chapter1
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;
}
}
网友评论