1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

Added SwaggerConfig

This commit is contained in:
2023-05-01 00:55:42 +08:00
parent fb17915419
commit bb42dc4e5f

View File

@@ -0,0 +1,20 @@
package com.cfive.pinnacle.config;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
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 customOpenAPI() {
Contact contact = new Contact();
contact.setName("FatttSnake");
contact.setUrl("https://fatweb.top");
contact.setEmail("fatttsnake@gmail.com");
return new OpenAPI().info(new Info().title("Pinnacle 接口文档").description("Pinnacle OA 后端接口文档,包含各个 Controller 类接口调用信息").contact(contact).version("1.0.0"));
}
}