springboot使用swagger3.0时,访问http://localhost:8080/swagger-ui.html页面404,无法访问
需要导入pom.xml
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
启动类中加上 @EnableOpenApi
最后访问:
http://localhost:8080/swagger-ui/index.html
成功!