在application.properties写入下面代码
test.boolean=true
test.string=abc
test.integer=123
test.long=123
test.float...test.array=1,3,4,5,6,1,2,3
test.list=1,3,4,5,6,1,2,3
test.set=1,3,4,5,6,1,2,3
test.map={name:"张三", age:18}
使用...@Value("${test.integer}")
private Integer testInteger;
@Value("${test.long}")
private Long testLong...;
@Value("${test.float}")
private Float testFloat;
@Value("${test.double}")
private Double testDouble...;
@Value("#{'${test.array}'.split(',')}")
private String[] testArray;
@Value("#{'${test.list}'.split