欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
一、引入pom依赖
 
<dependency>
 
            <groupId>com.github.xiaoymin</groupId>
 
            <artifactId>knife4j-spring-boot-starter</artifactId>
 
            <version>2.0.2</version>
 
        </dependency>
 
二、在swaggerconfig中加@EnableKnife4j这个注解
 
三、使用
 
在方法前直接使用该注解即可,注解中添加的参数就是需要请求时隐藏的参数。

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h65243.shtml