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