406 not acceptable

 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.


ajax 방식으로 image를 바로 띄워주려는데 위와 같은 에러가 떴음.


이유는 확장자가 맞지 않았기 때문. controller의 produces type과 파일 확장자가 달랐기 때문인데, 같도록 바꿔주니 됨.


다음과 같은 코드가 유용한 듯.


produces = "image/*"

Posted by 타다키치
,