zh.money.list[0]=10
zh.money.list[1]=30
zh.money.list[2]=50
zh.money.list[3]=70
zh.money.list[4]=90
zh.money.list[5]=110
zh.money.list[6]=130
@Component
@ConfigurationProperties(prefix = "zh.money")
@Data
public class SignMoneyListConfig {
/**
* 连续天数集合
*/
private List<Integer> list;
}
使用时然后直接注入就可以了,properties中注入一定要先把类放入容器中,一般用无状态@Component注解
版权声明:本文为qq_30920479原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。