zjk
5 天以前 ae56813ff0d78aae56b0b5066476ae4867b92a1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.ruoyi.common.security.config;
 
import java.util.TimeZone;
import org.springframework.context.annotation.Bean;
import tools.jackson.databind.json.JsonMapper.Builder;
 
/**
 * 系统配置
 *
 * @author ruoyi
 */
public class ApplicationConfig
{
    /**
     * 时区配置
     */
    @Bean
    public tools.jackson.databind.json.JsonMapper jacksonJsonMapper(Builder builder)
    {
        return builder.defaultTimeZone(TimeZone.getTimeZone("GMT+8")).build();
    }
}