강의

멘토링

커뮤니티

Inflearn Community Q&A

cellfamily4962's profile image
cellfamily4962

asked

[Revised 2023-11-27] Developing RESTful Web Services using Spring Boot 3.x

How to Implement Internationalization

Accept-Language=en 이 작동하지 않습니다.

Written on

·

436

0

Accept-Language를 지정하지 않고 GET을 사용하면 정상적으로 '안녕하세요'가 응답됩니다.

Accept-Language=en을 추가하여 보내도 '안녕하세요'가 등답됩니다.

Accept-Language=fr도 마찬가지입니다.

##코드입니다.

Postmand으로 GET 했을 때 서버 콘셀에서보이는 로그는 아래와 같습니다. key-value는 정상적으로 서버에 도달하는데 응답이 한글만 됩니다. 

미리 감사드립니다.

localespring-bootrest-api

Answer 2

0

동일한 문제가 발생합니다😂

0

cellfamily4962님의 프로필 이미지
cellfamily4962
Questioner

messageSrouce.getMessage() 함수의 inlya hint가 강사님 것과 제 것이 다른데 뭔 차이가 있나요?

cellfamily4962's profile image
cellfamily4962

asked

Ask a question