2 changed files with 24 additions and 1 deletions
@ -0,0 +1,22 @@ |
|||||||
|
package com.ruoyi.common.security.config; |
||||||
|
|
||||||
|
import java.util.TimeZone; |
||||||
|
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; |
||||||
|
import org.springframework.context.annotation.Bean; |
||||||
|
|
||||||
|
/** |
||||||
|
* 系统配置 |
||||||
|
* |
||||||
|
* @author ruoyi |
||||||
|
*/ |
||||||
|
public class ApplicationConfig |
||||||
|
{ |
||||||
|
/** |
||||||
|
* 时区配置 |
||||||
|
*/ |
||||||
|
@Bean |
||||||
|
public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization() |
||||||
|
{ |
||||||
|
return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault()); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue