본문 바로가기

Backend

No converter for [...] with preset Content-Type 'null'

Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class org.example.springproject.datasource.dto.ResultDTO] with preset Content-Type 'null']

 

기존 코드

 

값을 가져올 일이 없다고 생각해서 getter를 선언하지 않았는데... 그것 때문인 것 같다.

 

수정

'Backend' 카테고리의 다른 글

spring boot 프로젝트 만들기 (intellij)  (0) 2024.03.20
Spring, tomcat, jsp 프로젝트 생성  (0) 2024.02.20
용어 정리  (0) 2023.06.01
Spring Framework  (0) 2023.06.01
JAVA Annotation  (0) 2023.06.01