From 8c14c34a3a7c8bde398872d365958c3d59ed63ca Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Mon, 6 May 2024 19:03:22 +0800 Subject: [PATCH] =?UTF-8?q?API=E6=88=90=E6=89=B9=E5=88=86=E9=85=8D?= =?UTF-8?q?=E6=BC=8F=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml index 2059d3d0..d3bd9a86 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml @@ -60,6 +60,12 @@ spring: # 国际化资源文件路径 basename: static/i18n/messages jackson: + serialization: + # 某些类对象无法序列化的时候,是否报错 + fail_on_empty_beans: true + deserialization: + # json对象中有不存在的属性时候,是否报错 + fail_on_unknown_properties: true time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss #配置读取的多环境读取 @@ -93,12 +99,12 @@ spring: # redis配置 redis: database: 0 - host: localhost - port: 6379 - password: zfjd@123 -# host: 43.136.51.161 +# host: localhost # port: 6379 -# password: meiyoumima +# password: zfjd@123 + host: 43.136.51.161 + port: 6379 + password: meiyoumima timeout: 6000ms # 连接超时时长(毫秒) lettuce: pool: @@ -202,7 +208,7 @@ security: allowed: - servernames: localhost,127.0.0.1,139.186.135.156,10.132.108.3,10.76.108.1 + servernames: localhost,127.0.0.1,139.186.135.156,10.132.108.3,10.76.108.1,192.168.31.71,192.168.1.102 excel: export: true