中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 3c4fee1db116c11d4f04727cfe076d7c94daeaf2
commit | author | age
43dc29 1 package com.odcc.cpzidc.framework.config;
Y 2
3 import java.util.TimeZone;
4 import org.mybatis.spring.annotation.MapperScan;
5 import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
6 import org.springframework.context.annotation.Bean;
7 import org.springframework.context.annotation.Configuration;
8 import org.springframework.context.annotation.EnableAspectJAutoProxy;
9
10 /**
11  * 程序注解配置
12  *
13  * @author ruoyi
14  */
15 @Configuration
16 // 表示通过aop框架暴露该代理对象,AopContext能够访问
17 @EnableAspectJAutoProxy(exposeProxy = true)
18 // 指定要扫描的Mapper类的包的路径
19 @MapperScan("com.odcc.cpzidc.**.mapper")
20 public class ApplicationConfig
21 {
22     /**
23      * 时区配置
24      */
25     @Bean
26     public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization()
27     {
28         return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault());
29     }
30 }