1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.talentcard.server.config;
 
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@Configuration
public class SwaggerConfig {
 
    @Bean
    public OpenAPI talentCardOpenApi() {
        return new OpenAPI().info(new Info()
                .title("人才卡服务接口")
                .description("人才卡后端服务 OpenAPI 文档,启动后访问 /swagger-ui/index.html 或 /swagger-ui.html")
                .version("v1"));
    }
}