你多努力一点,获得的打击就多一点。
今天使用枚举传参就出现了各种报错。
比如这样的:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error:
Input mismatch reading Enum Gender: properties-based @JsonCreator ([method Gender#codeOf(java.lang.String)]
本文探讨了在Spring Boot项目中遇到的关于枚举类型和@JsonCreator注解的JSON解析错误,通过降低Jackson版本到2.10.5来修复,并提供了pom.xml配置方法。
你多努力一点,获得的打击就多一点。
今天使用枚举传参就出现了各种报错。
比如这样的:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error:
Input mismatch reading Enum Gender: properties-based @JsonCreator ([method Gender#codeOf(java.lang.String)]
6680
999
1009