@ApolloJsonValue转换格式失败 #4598
Answered
by
ZhangMuZhiYa
ZhangMuZhiYa
asked this question in
Q&A
-
代码中Bean和@ApolloJsonValue配置如下 @ApolloJsonValue("${high.school.old.stu.coupon.config}")
private HighSchoolStuCouponConfig highSchoolStuCouponConfig; @Data
public class HighSchoolStuCouponConfig {
/**
* 活动开始时间
*/
private LocalDateTime startTime;
/**
* 活动结束时间
*/
private LocalDateTime endTime;
/**
* 高中老生班课id列表
*/
private List<Long> highSchoolOldStuClazzList;
/**
* 优惠券number列表
*/
private List<Long> couponNumberList;
} Apollo中的配置如下
这样的话,就会报错
想问下,@ApolloJsonValue这个注解是只可以解析一层json吗?我内部的属性的值是LocalDateTime要怎么解析得到呢? 感谢! |
Beta Was this translation helpful? Give feedback.
Answered by
ZhangMuZhiYa
Oct 14, 2022
Replies: 2 comments 3 replies
-
see #4522 |
Beta Was this translation helpful? Give feedback.
3 replies
-
这样就可以了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZhangMuZhiYa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这样就可以了