From 7362c5fce3da956aa6c862df47f14c91325ca126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sun, 5 Aug 2018 17:08:43 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/application-dev.yml | 2 +- .../src/main/resources/config/pigx-daemon-dev.yml | 9 +++++++++ .../src/main/resources/config/pigx-gateway-dev.yml | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pigx-config/src/main/resources/config/application-dev.yml b/pigx-config/src/main/resources/config/application-dev.yml index d5a55b55e..f6b0645e2 100644 --- a/pigx-config/src/main/resources/config/application-dev.yml +++ b/pigx-config/src/main/resources/config/application-dev.yml @@ -70,7 +70,7 @@ mybatis-plus: swagger: title: 'PigX Swagger API' description: '全宇宙最牛逼的Spring Cloud微服务开发脚手架' - version: '1.3.0' + version: '1.4.0' license: 'Powered By PigX' licenseUrl: 'https://gitee.com/log4j/pig/wikis' terms-of-service-url: 'https://gitee.wang/pig/pigx' diff --git a/pigx-config/src/main/resources/config/pigx-daemon-dev.yml b/pigx-config/src/main/resources/config/pigx-daemon-dev.yml index 9fa56a21f..c20521c58 100644 --- a/pigx-config/src/main/resources/config/pigx-daemon-dev.yml +++ b/pigx-config/src/main/resources/config/pigx-daemon-dev.yml @@ -1,3 +1,12 @@ +## spring security 配置 +security: + oauth2: + client: + client-id: daemon + client-secret: daemon + scope: server + +## 定时任务 spring: # 保存定时任务的数据源 datasource: diff --git a/pigx-config/src/main/resources/config/pigx-gateway-dev.yml b/pigx-config/src/main/resources/config/pigx-gateway-dev.yml index a9467a58d..c57d6d48f 100644 --- a/pigx-config/src/main/resources/config/pigx-gateway-dev.yml +++ b/pigx-config/src/main/resources/config/pigx-gateway-dev.yml @@ -46,6 +46,13 @@ spring: - Path=/gen/** filters: - StripPrefix=1 + # 定时任务模块 + - id: pigx-daemon + uri: lb://pigx-daemon + predicates: + - Path=/daemon/** + filters: + - StripPrefix=1 security: encode: