Dlise
시원한 냉장고
Dlise
전체 방문자
오늘
어제
  • 시원한 냉장고 (136)
    • Java (31)
      • Java (26)
      • Spring (5)
    • Algorithm & PS (25)
      • Algorithm (14)
      • Problem Solving (11)
    • Network (12)
    • Database (2)
    • Data Structure (4)
    • OOP & CleanCode (5)
    • Web (0)
    • Git (2)
    • AI (2)
    • Project (1)
      • Discord Bot (1)
    • Error (19)
    • Tools (5)
    • 수학 (5)
      • 확률과 통계(기초) (5)
    • 컴퓨터 구조 (3)
    • 활동 (20)
      • 행사 & 여행 (10)
      • 자격증 (4)
      • 회고 (6)
      • 기타 (0)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • spring security in action second edition
  • 가장쉬운알고리즘책
  • CleanCode
  • 통계학
  • 열혈강의자료구조
  • 백준
  • 네트워크
  • 중위 표기법
  • 후위 표기법
  • java

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
Dlise

시원한 냉장고

Error

Spring - 406 Not Acceptable 발생

2024. 8. 5. 23:22

"status": 406,  "error": "Not Acceptable"

Springboot responseDto를 responseEntity Body에 담아서 내보내려고 하는데 406 Error가 발생했다.

다른 Dto는 정상 동작되는데 어째서 해당 API만 되지 않는 것인지 몰라 내용을 찾아보았다.

 

해결 방법

Dto에 Getter Annotation이 있어야 한다고 한다.

붙여주니 정상 동작했다.

'Error' 카테고리의 다른 글

Sublime Text - Package Control이 검색되지 않는 문제(MAC)  (1) 2025.03.11
MySQL - column ' ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by  (3) 2025.02.27
Spring - Swagger Response 정보가 보이지 않는 문제  (0) 2024.07.30
Spring - 'Failed to convert from type [java.lang.String] to type [java.util.Date] for value [ ]'  (3) 2024.05.05
Chrome Vue.js devtools - Vue.js not detected  (0) 2024.05.03
    'Error' 카테고리의 다른 글
    • Sublime Text - Package Control이 검색되지 않는 문제(MAC)
    • MySQL - column ' ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
    • Spring - Swagger Response 정보가 보이지 않는 문제
    • Spring - 'Failed to convert from type [java.lang.String] to type [java.util.Date] for value [ ]'
    Dlise
    Dlise

    티스토리툴바