Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit a72a15a

Browse files
committed
feat: add SwaggerConfig
1 parent d14dcb6 commit a72a15a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.example.hcbc.global.swagger;
2+
3+
import io.swagger.v3.oas.models.OpenAPI;
4+
import io.swagger.v3.oas.models.info.Info;
5+
import org.springframework.context.annotation.Bean;
6+
import org.springframework.context.annotation.Configuration;
7+
8+
@Configuration
9+
public class SwaggerConfig {
10+
11+
@Bean
12+
public OpenAPI customOpenAPI() {
13+
return new OpenAPI()
14+
.info(new Info()
15+
.title("HCBC")
16+
.version("1.0")
17+
.description("This is the HCBC API"));
18+
}
19+
}

0 commit comments

Comments
 (0)