co.fingerprintsoft.notification.json.JsonAutoConfiguration Maven / Gradle / Ivy
package co.fingerprintsoft.notification.json;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConditionalOnClass(ObjectMapper.class)
public class JsonAutoConfiguration {
@Bean
@ConditionalOnMissingBean
@ConditionalOnClass(ObjectMapper.class)
public ObjectMapper objectMapper() {
return new ObjectMapper();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy