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

tech.mhuang.pacebox.springboot.autoconfiguration.jackson.InterJacksonAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 2023.0.0.0
Show newest version
package tech.mhuang.pacebox.springboot.autoconfiguration.jackson;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * jackson配置、去掉引号
 *
 * @author mhuang
 * @since 1.0.0
 */
@Configuration
@ConditionalOnClass(JacksonAutoConfiguration.class)
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
public class InterJacksonAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public JacksonConfigurer jacksonConfigurer() {
        return new JacksonConfigurer();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy