You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not write JSON: ****Controller$EnumKey incompatible with java.lang.String; nested exception is com.fasterxml.jackson.databind.JsonMappingException: ****Controller$EnumKey incompatible with java.lang.String (through reference chain: org.springframework.hateoas.EntityModel["[anySetter]"]->java.util.HashMap["K2"])
i think hateoas use @JsonAnyGetter and com.fasterxml.jackson.databind.ser.AnyGetterWriter use string key MapSerializer
spring-hateoas 1.1.2
code like this
error
i think hateoas use
@JsonAnyGetter
andcom.fasterxml.jackson.databind.ser.AnyGetterWriter
use string key MapSerializerspring-hateoas/src/main/java/org/springframework/hateoas/EntityModel.java
Lines 135 to 140 in 3b1559f
already use this added enum key serializer
still doesn't work, what is the correct way?
The text was updated successfully, but these errors were encountered: