Add freemind converted.
This commit is contained in:
@@ -23,12 +23,15 @@ public class DebugMappingJacksonHttpMessageConverter extends MappingJacksonHttpM
|
||||
} catch (org.springframework.http.converter.HttpMessageNotReadableException e) {
|
||||
throw new HttpMessageNotReadableException("Request Body:\n" + new String(bytes, "UTF-8"), e);
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new HttpMessageNotReadableException("Request Body:\n" + new String(bytes, "UTF-8"), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class HttpMessageNotReadableException extends org.springframework.http.converter.HttpMessageNotReadableException {
|
||||
|
||||
public HttpMessageNotReadableException(String msg, org.springframework.http.converter.HttpMessageNotReadableException cause) {
|
||||
public HttpMessageNotReadableException(String msg, Exception cause) {
|
||||
super(msg, cause);
|
||||
}
|
||||
}
|
||||
|
@@ -17,6 +17,7 @@ public class RestMvcConfiguration extends WebMvcConfigurerAdapter {
|
||||
@Override
|
||||
public void configureMessageConverters(@NotNull final List<HttpMessageConverter<?>> converters) {
|
||||
converters.add(converter());
|
||||
configureMessageConverters(converters);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
Reference in New Issue
Block a user