mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-03 04:19:57 +08:00
适配Spring Boot 3.0
This commit is contained in:
@@ -89,7 +89,7 @@ public class SwaggerProvider {
|
||||
if (this.persistenceResponseBody) {
|
||||
baseDefinition = info.getResponseBodyDefinition();
|
||||
if (baseDefinition != null) {
|
||||
Map responseMap = parseResponse(info);
|
||||
Map<String, Object> responseMap = parseResponse(info);
|
||||
if (!responseMap.isEmpty()) {
|
||||
path.setResponses(responseMap);
|
||||
doProcessDefinition(baseDefinition, info, groupName, "root_" + baseDefinition.getName(), "response", 0);
|
||||
@@ -114,9 +114,9 @@ public class SwaggerProvider {
|
||||
}
|
||||
|
||||
if (this.DEFINITION_MAP.size() > 0) {
|
||||
Set<Map.Entry> entries = ((Map) this.DEFINITION_MAP).entrySet();
|
||||
for (Map.Entry entry : entries) {
|
||||
swaggerEntity.addDefinitions(Objects.toString(entry.getKey()), entry.getValue());
|
||||
Set<Map.Entry<String, Object>> entries =this.DEFINITION_MAP.entrySet();
|
||||
for (Map.Entry<String, Object> entry : entries) {
|
||||
swaggerEntity.addDefinitions(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
org.ssssssss.magicapi.swagger.MagicSwaggerConfiguration
|
||||
Reference in New Issue
Block a user