feat(mdpf): 添加系统模块的Web配置和API分组
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
- 创建 MdpfWebConfiguration 配置类- 配置 GroupedOpenApi Bean 用于 swagger 文档分组- 设置 API 分组名称为 "mdpf" - 启用 proxyBeanMethods = false 优化性能
This commit is contained in:
parent
526283f605
commit
ec3aeb427a
@ -0,0 +1,24 @@
|
||||
package cn.iocoder.yudao.module.mdpf.framework.config;
|
||||
|
||||
import cn.iocoder.yudao.framework.swagger.config.YudaoSwaggerAutoConfiguration;
|
||||
import org.springdoc.core.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* system 模块的 web 组件的 Configuration
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class MdpfWebConfiguration {
|
||||
|
||||
/**
|
||||
* system 模块的 API 分组
|
||||
*/
|
||||
@Bean
|
||||
public GroupedOpenApi mdpfGroupedOpenApi() {
|
||||
return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("mdpf");
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user