From f9881399647a6b2eb7ddd7ba71180ec49e03631a Mon Sep 17 00:00:00 2001 From: lishangbu Date: Fri, 27 Jul 2018 23:34:28 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20=E5=BE=AE=E8=B0=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/META-INF/spring-devtools.properties | 1 + .../src/main/resources/META-INF/spring.factories | 2 ++ pigx-config/src/main/resources/config/application-dev.yml | 3 +++ pigx-config/src/main/resources/config/pigx-upms-dev.yml | 5 +---- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring-devtools.properties create mode 100644 pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring.factories diff --git a/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring-devtools.properties b/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring-devtools.properties new file mode 100644 index 000000000..b1fe69c3d --- /dev/null +++ b/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring-devtools.properties @@ -0,0 +1 @@ +restart.include.pigx-common-security=/pigx-common-swagger[\\w-]+\.jar diff --git a/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring.factories b/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring.factories new file mode 100644 index 000000000..1fdb305f4 --- /dev/null +++ b/pigx-common/pigx-common-swagger/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ + com.pig4cloud.pigx.common.swagger.config.SwaggerAutoConfiguration diff --git a/pigx-config/src/main/resources/config/application-dev.yml b/pigx-config/src/main/resources/config/application-dev.yml index 364e7494c..c07ebe4ac 100644 --- a/pigx-config/src/main/resources/config/application-dev.yml +++ b/pigx-config/src/main/resources/config/application-dev.yml @@ -53,6 +53,9 @@ swagger: license: 'Powered By PigX' licenseUrl: 'https://gitee.com/log4j/pig/wikis' terms-of-service-url: 'https://gitee.wang/pig/pigx' + exclude-path: + - /actuator/** + - /error contact: name: '冷冷' email: 'wangiegie@gmail.com' diff --git a/pigx-config/src/main/resources/config/pigx-upms-dev.yml b/pigx-config/src/main/resources/config/pigx-upms-dev.yml index 4e29bb29c..d7d894a06 100644 --- a/pigx-config/src/main/resources/config/pigx-upms-dev.yml +++ b/pigx-config/src/main/resources/config/pigx-upms-dev.yml @@ -38,7 +38,7 @@ mybatis-plus: configuration: map-underscore-to-camel-case: true cache-enabled: true -# swagger相关配置 +# swagger相关配置,覆盖全局配置 swagger: authorization: authorization-scope-list: @@ -48,6 +48,3 @@ swagger: description: 'read all' - scope: 'write' description: 'access all' - exclude-path: - - /actuator/** - - /error