From d5d622e7175ff0843ffce2f384c88074cdbec431 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Thu, 28 Oct 2021 16:10:22 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=20=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=B8=E5=85=B3=E5=BA=93=E5=92=8C=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9=202.=20=20=E8=BD=AF=E4=BB=B6=E5=8C=85?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E6=9B=B4=E6=96=B0=E5=88=B0=202.0.8.?= =?UTF-8?q?10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application-local.properties | 4 ++++ config/application-test.properties | 4 ++++ pom.xml | 20 +++++++++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/config/application-local.properties b/config/application-local.properties index 3a5a19a2..a9802e4e 100644 --- a/config/application-local.properties +++ b/config/application-local.properties @@ -3,6 +3,10 @@ server.port=9276 server.tomcat.basedir=./basedir # 多个项目放在nginx下同个端口,通过该配置区分 server.servlet.context-path=/dispose + +#暴露内置的刷新配置文件url,这个必须写,否则无法刷新配置文件 +management.endpoints.web.exposure.include=refresh + # 配置数据源 spring.datasource.url=jdbc:mysql://172.21.48.75:3306/dispose_hx?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ =convertToNull&useUnicode=true diff --git a/config/application-test.properties b/config/application-test.properties index 6b114a84..bcb11d55 100644 --- a/config/application-test.properties +++ b/config/application-test.properties @@ -3,6 +3,10 @@ server.port=9276 server.tomcat.basedir=./basedir # 多个项目放在nginx下同个端口,通过该配置区分 server.servlet.context-path=/dispose + +#暴露内置的刷新配置文件url,这个必须写,否则无法刷新配置文件 +management.endpoints.web.exposure.include=refresh + # 配置数据源 #spring.datasource.url=jdbc:mysql://10.88.77.65:33061/ci_dispose_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ # =convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true diff --git a/pom.xml b/pom.xml index 5fe39aa8..2fc0019a 100644 --- a/pom.xml +++ b/pom.xml @@ -17,9 +17,22 @@ com.dispose dispose_platform - 2.0.8.9 + 2.0.8.10 dispose_platform Dispose Platform + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + org.springframework.boot @@ -28,6 +41,11 @@ runtime true + + + org.springframework.cloud + spring-cloud-starter-config + org.springframework.boot spring-boot-starter-web