TEXT   144
public class MyConfiguration
Guest on 30th November 2024 05:20:18 AM


  1. import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
  2. import org.springframework.context.annotation.*;
  3. import org.springframework.http.converter.*;
  4.  
  5. @Configuration
  6. public class MyConfiguration {
  7.  
  8.         @Bean
  9.         public HttpMessageConverters customConverters() {
  10.                 HttpMessageConverter<?> additional = ...
  11.                 HttpMessageConverter<?> another = ...
  12.                 return new HttpMessageConverters(additional, another);
  13.         }
  14. }

Raw Paste

Login or Register to edit or fork this paste. It's free.