package com.gxwebsoft.common.core.config;

import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Jackson配置类
 * 确保JSR310模块被正确注册
 *
 * @author WebSoft
 * @since 2025-01-12
 */
@Configuration
public class JacksonConfig {

    /**
     * 确保JavaTimeModule被注册
     */
    @Bean
    @ConditionalOnMissingBean
    public JavaTimeModule javaTimeModule() {
        return new JavaTimeModule();
    }
}
