All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy