mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-11-06 16:57:12 +08:00
refactor(api-doc/web): 重构doc文档枚举展示处理,处理doc 文档全局响应格式
This commit is contained in:
@@ -37,6 +37,7 @@ import top.continew.starter.core.constant.PropertiesConstants;
|
||||
import top.continew.starter.core.util.GeneralPropertySourceFactory;
|
||||
|
||||
import java.util.Locale;
|
||||
import top.continew.starter.web.handler.DocGenericResponseHandler;
|
||||
|
||||
/**
|
||||
* 全局响应自动配置
|
||||
@@ -143,6 +144,16 @@ public class GlobalResponseAutoConfiguration {
|
||||
return messageSource;
|
||||
}
|
||||
|
||||
/**
|
||||
* SpringDoc 通用响应处理 - 仅处理 doc 文档响应格式
|
||||
*
|
||||
* @return {@link DocGenericResponseHandler }
|
||||
*/
|
||||
@Bean
|
||||
public DocGenericResponseHandler genericResponseHandler() {
|
||||
return new DocGenericResponseHandler();
|
||||
}
|
||||
|
||||
@PostConstruct
|
||||
public void postConstruct() {
|
||||
log.debug("[ContiNew Starter] - Auto Configuration 'Web-Global Response' completed initialization.");
|
||||
|
||||
Reference in New Issue
Block a user