清除教师不存在的组
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
package com.yunhai.bschclassmanage.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SpringDoc configuration for the class management service.
|
||||||
|
* The application exposes OpenAPI JSON and Swagger UI endpoints.
|
||||||
|
*/
|
||||||
|
@Configuration
|
||||||
|
public class SwaggerConfig {
|
||||||
|
/**
|
||||||
|
* Registers the metadata shown in the generated API documentation.
|
||||||
|
*
|
||||||
|
* @return OpenAPI metadata for this application
|
||||||
|
*/
|
||||||
|
@Bean
|
||||||
|
public OpenAPI bschClassOpenAPI() {
|
||||||
|
return new OpenAPI().info(new Info()
|
||||||
|
.title("BschClass OpenAPI") // Documentation title
|
||||||
|
.description("School, class, teacher and student management APIs") // Documentation description
|
||||||
|
.version("1.0.0")); // Documentation version
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user