update 项目细节调整 多环境配置文件调整
parent
0e254be6e2
commit
42a196f875
@ -0,0 +1,62 @@
|
|||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
#jackson配置
|
||||||
|
jackson:
|
||||||
|
# 日期格式化
|
||||||
|
date-format: yyyy-MM-dd HH:mm:ss
|
||||||
|
serialization:
|
||||||
|
# 格式化输出
|
||||||
|
indent_output: false
|
||||||
|
# 忽略无法转换的对象
|
||||||
|
fail_on_empty_beans: false
|
||||||
|
deserialization:
|
||||||
|
# 允许对象忽略json中不存在的属性
|
||||||
|
fail_on_unknown_properties: false
|
||||||
|
|
||||||
|
# feign 配置
|
||||||
|
feign:
|
||||||
|
sentinel:
|
||||||
|
enabled: true
|
||||||
|
okhttp:
|
||||||
|
enabled: true
|
||||||
|
httpclient:
|
||||||
|
enabled: false
|
||||||
|
client:
|
||||||
|
config:
|
||||||
|
default:
|
||||||
|
connectTimeout: 10000
|
||||||
|
readTimeout: 10000
|
||||||
|
compression:
|
||||||
|
request:
|
||||||
|
enabled: true
|
||||||
|
response:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# 暴露监控端点
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: '*'
|
||||||
|
|
||||||
|
# redisson 缓存配置
|
||||||
|
redisson:
|
||||||
|
cacheGroup:
|
||||||
|
# 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置
|
||||||
|
- groupId: redissonCacheMap
|
||||||
|
# 组过期时间(脚本监控)
|
||||||
|
ttl: 60000
|
||||||
|
# 组最大空闲时间(脚本监控)
|
||||||
|
maxIdleTime: 60000
|
||||||
|
# 组最大长度
|
||||||
|
maxSize: 0
|
||||||
|
|
||||||
|
# 分布式锁 lock4j 全局配置
|
||||||
|
lock4j:
|
||||||
|
# 获取分布式锁超时时间,默认为 3000 毫秒
|
||||||
|
acquire-timeout: 3000
|
||||||
|
# 分布式锁的超时时间,默认为 30 毫秒
|
||||||
|
expire: 30000
|
||||||
|
|
||||||
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
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