手册

禁用swagger配置

276
冀俊喜
2021-06-09 14:58:34
分享链接

第一种方法:如图下注释内容,并重新打包

第二种:

添加如图内容

import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;

@EnableSwaggerBootstrapUI

然后在application-dev.yml加上配置,true为禁用

第二种方法添加后可以通过application配置文件来进行灵活修改


发表评论
评论通过审核后显示。