0

I save the ResponseEntity to the database as a String, then when I read it again and parse it, it comes as a Byte.

column in database Data Type: CLOB

Entity Field

@Column(name = "RESPONSE")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String response;

Orginal Evaluate Data Original data written to database

column in database

PermissionDto(id=79, systemCode=null, name=null, description=null ...)

enter image description here

When I run the code below, the body is parsed as bytes, not json.

ResponseEntity<Object> responseString = ResponseEntity.ok().body(apiIdempotence.response);

enter image description here

How can I solve this problem?

zoroglur
  • 395
  • 2
  • 18

0 Answers0