From 7683f7815938e2120edace70dddf6b52ca12ed4e Mon Sep 17 00:00:00 2001 From: wuy <1311695042@qq.com> Date: Tue, 4 Aug 2020 17:03:52 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=A2=9E=E5=8A=A0swagger=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diboot-docs/guide/notes/faq/main.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diboot-docs/guide/notes/faq/main.md b/diboot-docs/guide/notes/faq/main.md index 3d0388b..315d184 100644 --- a/diboot-docs/guide/notes/faq/main.md +++ b/diboot-docs/guide/notes/faq/main.md @@ -176,7 +176,7 @@ public class BaseCustomServiceImpl, T> extends BaseS } } ~~~ -## 如何解决数据库无法自动设置更新时间? +## 如何解决数据库无法自动设置更新时间 * 通过Mybatis-plus的MetaObjectHandler接口自动填充,示例: ~~~java @Component @@ -187,5 +187,10 @@ public class FillMetaObjectHandler implements MetaObjectHandler { } } ~~~ +## 如何解决无法访问的swagger的问题 +* 需要设置swagger相关的匿名配置,如下: +~~~java +diboot.iam.anon-urls=/swagger-ui.html,/swagger-resources/**,/webjars/springfox-swagger-ui/**,/v2/api-docs/** +~~~