package com.jcdm.framework.config;

import java.util.TimeZone;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 腮�綺閿�В��臀�
 *
 * @author jc
 */
@Configuration
// 茵�ず��菴�aop罅��倶�顔�画�篁g��絲壕院,AopContext�遵�莅翠��
@EnableAspectJAutoProxy(exposeProxy = true)
// ��絎�荀������Mapper膠紫������莊��
@MapperScan("com.jcdm.**.mapper")
public class ApplicationConfig
{
    /**
     * �九�咲��臀�
     */
    @Bean
    public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization()
    {
        return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault());
    }
}