15 lines
424 B
Java
15 lines
424 B
Java
|
|
package com.quantai.trader.config;
|
||
|
|
|
||
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||
|
|
import com.fasterxml.jackson.databind.json.JsonMapper;
|
||
|
|
import org.springframework.context.annotation.Bean;
|
||
|
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
|
||
|
|
@Configuration
|
||
|
|
public class JacksonConfig {
|
||
|
|
@Bean
|
||
|
|
ObjectMapper traderObjectMapper() {
|
||
|
|
return JsonMapper.builder().findAndAddModules().build();
|
||
|
|
}
|
||
|
|
}
|