File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
springdoc-openapi-ui/src/main/java/org/springdoc/ui
springdoc-openapi-webflux-ui/src/main/java/org/springdoc/ui Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33import io .swagger .v3 .oas .annotations .Operation ;
44import org .apache .commons .lang3 .StringUtils ;
5- import org .springdoc .core .OpenAPIBuilder ;
5+ import org .springdoc .core .SpringDocConfiguration ;
66import org .springdoc .core .SwaggerUiConfigProperties ;
77import org .springframework .beans .factory .InitializingBean ;
88import org .springframework .beans .factory .annotation .Autowired ;
2525
2626@ Controller
2727@ ConditionalOnProperty (name = SPRINGDOC_SWAGGER_UI_ENABLED , matchIfMissing = true )
28- @ ConditionalOnBean (OpenAPIBuilder .class )
28+ @ ConditionalOnBean (SpringDocConfiguration .class )
2929class SwaggerWelcome implements InitializingBean {
3030
3131 @ Value (API_DOCS_URL )
@@ -90,7 +90,7 @@ private void buildConfigUrl(HttpServletRequest request) {
9090 swaggerUiConfig .setOauth2RedirectUrl (ServletUriComponentsBuilder .fromCurrentContextPath ().path (this .uiRootPath ).path (swaggerUiConfig .getOauth2RedirectUrl ()).build ().toString ());
9191 }
9292 }
93-
93+
9494 private void calculateUiRootPath () {
9595 StringBuilder sbUrl = new StringBuilder ();
9696 if (StringUtils .isNotBlank (mvcServletPath ))
Original file line number Diff line number Diff line change 11package org .springdoc .ui ;
22
33import org .apache .commons .lang3 .StringUtils ;
4- import org .springdoc .core .OpenAPIBuilder ;
4+ import org .springdoc .core .SpringDocConfiguration ;
55import org .springdoc .core .SwaggerUiConfigProperties ;
66import org .springframework .beans .factory .annotation .Autowired ;
77import org .springframework .beans .factory .annotation .Value ;
2525
2626@ Controller
2727@ ConditionalOnProperty (name = SPRINGDOC_SWAGGER_UI_ENABLED , matchIfMissing = true )
28- @ ConditionalOnBean (OpenAPIBuilder .class )
28+ @ ConditionalOnBean (SpringDocConfiguration .class )
2929public class SwaggerWelcome {
3030
3131 @ Autowired
You can’t perform that action at this time.
0 commit comments