Skip to content

Commit

Permalink
코드에 대한 설명을 수행하는 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
One-armed-boy committed Mar 10, 2024
1 parent 851179f commit ad278e3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public OctetStreamReadMsgConverter(ObjectMapper objectMapper) {
super(objectMapper, MediaType.APPLICATION_OCTET_STREAM);
}

// 기존 application/octet-stream 타입을 쓰기로 다루는 메시지 컨버터가 이미 존재 (ByteArrayHttpMessageConverter)
// 따라서 해당 컨버터는 쓰기 작업에는 이용하면 안됨
@Override
public boolean canWrite(Class<?> clazz, MediaType mediaType) {
return false;
Expand Down

0 comments on commit ad278e3

Please sign in to comment.