master
wxy 2024-05-24 13:56:58 +08:00
parent 875e436a1e
commit 91b9dd8dc2
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package com.jing.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());
}
}