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

io.github.ye17186.myhelper.web.autoconfigure.MhWebJacksonAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package io.github.ye17186.myhelper.web.autoconfigure;

import io.github.ye17186.myhelper.core.jackson.ObjectMappers;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;

/**
 * Jackson配置
 *
 * @author ye17186
 * @since 2022-10-13
 */
@AutoConfiguration(before = JacksonAutoConfiguration.class)
public class MhWebJacksonAutoConfiguration {

    @Bean
    public Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder() {

        return ObjectMappers.builder();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy