feign.codec.DecodeException

Error information:

feign.codec.DecodeException: Type definition error: [simple type, class com.rouchi.growth.rpc.dto.classroom.response.SimpleClassRoomResponse]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.rouchi.growth.rpc.dto.classroom.response.SimpleClassRoomResponse` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
 at [Source: (ByteArrayInputStream); line: 1, column: 61] (through reference chain: com.rouchi.commons.api.Result["data"]->java.util.ArrayList[0])

The main reason for reporting an error is that the return value cannot construct an object. After checking, it is found that there is an object using Lombok, which only writes @ builder, but does not write @ noargsconstructor
. Therefore, just let go of the comment.


Read More: