1.引入依赖
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>2.0.2</version>
</dependency>
2.在SecurityConfig 配置文件放行 doc.html
.antMatchers("/doc.html").anonymous()