info.baseinsight.core.GlobalBean Maven / Gradle / Ivy
The newest version!
package info.baseinsight.core;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableAutoConfiguration
public class GlobalBean {
@Bean("objectMapper")
public ObjectMapper getObjectMapper(){
return new ObjectMapper();
}
@Bean
public WebMvcRegistrations customerWebMvcRegistrations(){
return new BaseWebMvcRegistrations();
}
}