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 #生成环境禁用查看文档 标签:127.0,false,0.1,xxx,地址,html,swagger From: https://www.cnblogs.com/wjsqqj/p/18087900