swagger地址

swagger3:

http://127.0.0.1:xxx/swagger-ui/index.html

swagger2:

http://127.0.0.1:xxx/swagger-ui.html

http://127.0.0.1:xxx/doc.html

 

 

禁用swagger地址

springfox:
  documentation:
  # 总开关(同时设置auto-startup=false,否则/v3/api-docs等接口仍能继续访问)
    enabled: false
    auto-startup: false
    swagger-ui:
      enabled: false
 
swagger:
  config:
    # 开启身份认证功能
    login: true
    username: xxx
    password: xxx
 
 
knife4j:
  production: true #生成环境禁用查看文档
 
 
 
posted @ 2024-03-21 17:36  全琪俊  阅读(287)  评论(0编辑  收藏  举报