I have a question about spring IoC management. I created Bean in:
@SpringBootApplication
public class Application {
public static void main(String[] args) {....}
@Bean
public XmlMapper xmlMapper() {
return new XmlMapper();
}
}
These beans work fine as expected. But Default ObjectMapper get overridden and
@RestController try to parse the request and expect that payload is XML.
Can anyone explain why this happens?