webUrls: gray: 192.168.0.48:8123,192.168.0.49:8123 prod: 192.168.0.50:8123,192.168.0.51:8123
@Value("${webUrls.gray}") private String[] grayUrls; @Value("${webUrls.prod}") private String[] prodUrls; @Value("${webUrls.gray}") private List<String> grayUrls2; for(int i=0;i<grayUrls.length;i++){ log.info("grayUrl:"+grayUrls[i]); } for(int i=0;i<prodUrls.length;i++){ log.info("prodUrl:"+prodUrls[i]); } for(int i=0;i<grayUrls2.size();i++){ log.info("grayUrl2:"+grayUrls2.get(i)); }