@Value("#{'${server.name}'.split(',')}")
private List<String> servers;
@Value("#{'${server.name}'.split(',')}")
private List<String> servers;
@Value("#{'${server.name}'.split(',')}") private List<String> servers;
上述也可直接用于Set
@Value("#{'${server.name}'.split(',')}") private List<String> servers;
上述也可直接用于Set