Skip to content

Instantly share code, notes, and snippets.

View benoitdevos's full-sized avatar

Benoit Devos benoitdevos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am benoitdevos on github.
  • I am benoitdevos ( on keybase.
  • I have a public key ASChv9fBnPj9S3WAiySutxIr5aec57bPY1nWpaCuMJH-Iwo

To claim this, I am signing this object:

benoitdevos /
Last active March 19, 2022 19:29
Adding support for application/octet-stream in RestController (Spring Boot) - java version
package mycompany.myappp.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.AbstractHttpMessageConverter;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.HttpMessageNotReadableException;