Skip to content

Files

Latest commit

9035c4b · Jan 9, 2024

History

History

springboot-example-swagger2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 9, 2024
Nov 5, 2021
Nov 5, 2021
Jan 9, 2024

SpringBoot整合swagger(springfox3)

依赖

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-boot-starter</artifactId>
    <version>3.0.0</version>
</dependency>

注解

通过@EnableOpenApi开启

运行路径

通过http://localhost:8080/swagger-ui/index.html进入登录界面

swagger