Procházet zdrojové kódy

:wrench: 微调配置

lishangbu před 7 roky
rodič
revize
f988139964

+ 1 - 0
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

+ 2 - 0
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

+ 3 - 0
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'

+ 1 - 4
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