| | |
| | | import org.springdoc.core.service.OpenAPIService; |
| | | import org.springdoc.core.service.SecurityService; |
| | | import org.springdoc.core.utils.PropertyResolverUtils; |
| | | import org.springframework.boot.autoconfigure.AutoConfigureBefore; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.autoconfigure.web.ServerProperties; |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @RequiredArgsConstructor |
| | | @AutoConfigureBefore(SpringDocConfiguration.class) |
| | | @AutoConfiguration(before = SpringDocConfiguration.class) |
| | | @ConditionalOnProperty(name = "swagger.enabled", havingValue = "true", matchIfMissing = true) |
| | | public class SwaggerConfig { |
| | | |
| | |
| | | return; |
| | | } |
| | | PlusPaths newPaths = new PlusPaths(); |
| | | oldPaths.forEach((k,v) -> newPaths.addPathItem(finalContextPath + k, v)); |
| | | oldPaths.forEach((k, v) -> newPaths.addPathItem(finalContextPath + k, v)); |
| | | openApi.setPaths(newPaths); |
| | | }; |
| | | } |