From 80023982865b6ad10f7119d950809dd3d9a72401 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 27 May 2019 21:10:02 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20Gateway=E5=8A=A8=E6=80=81=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/gateway/props/RouteProperties.java | 2 ++ .../org/springblade/resource/config/OssConfiguration.java | 2 -- doc/nacos/blade-dev.yaml | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java b/blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java index 215b755f..fd039e5c 100644 --- a/blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java +++ b/blade-gateway/src/main/java/org/springblade/gateway/props/RouteProperties.java @@ -18,6 +18,7 @@ package org.springblade.gateway.props; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.cloud.context.config.annotation.RefreshScope; import java.util.ArrayList; import java.util.List; @@ -28,6 +29,7 @@ import java.util.List; * @author Chill */ @Data +@RefreshScope @ConfigurationProperties("blade.document") public class RouteProperties { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java index 4b31e22a..65ff40ee 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/OssConfiguration.java @@ -20,7 +20,6 @@ import lombok.AllArgsConstructor; import org.springblade.core.oss.props.OssProperties; import org.springblade.resource.builder.OssBuilder; import org.springblade.resource.mapper.OssMapper; -import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -31,7 +30,6 @@ import org.springframework.context.annotation.Configuration; */ @Configuration @AllArgsConstructor -@EnableConfigurationProperties(OssProperties.class) public class OssConfiguration { private OssProperties ossProperties; diff --git a/doc/nacos/blade-dev.yaml b/doc/nacos/blade-dev.yaml index 42aa8616..fb626181 100644 --- a/doc/nacos/blade-dev.yaml +++ b/doc/nacos/blade-dev.yaml @@ -20,3 +20,11 @@ blade: url: jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8 username: root password: root + document: + resources: + - name: 授权模块 + location: /blade-auth + - name: 工作台模块 + location: /blade-desk + - name: 系统模块 + location: /blade-system