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
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import io .swagger .v3 .oas .annotations .Operation ;
4
4
import org .apache .commons .lang3 .StringUtils ;
5
- import org .springdoc .core .OpenAPIBuilder ;
5
+ import org .springdoc .core .SpringDocConfiguration ;
6
6
import org .springdoc .core .SwaggerUiConfigProperties ;
7
7
import org .springframework .beans .factory .InitializingBean ;
8
8
import org .springframework .beans .factory .annotation .Autowired ;
25
25
26
26
@ Controller
27
27
@ ConditionalOnProperty (name = SPRINGDOC_SWAGGER_UI_ENABLED , matchIfMissing = true )
28
- @ ConditionalOnBean (OpenAPIBuilder .class )
28
+ @ ConditionalOnBean (SpringDocConfiguration .class )
29
29
class SwaggerWelcome implements InitializingBean {
30
30
31
31
@ Value (API_DOCS_URL )
@@ -90,7 +90,7 @@ private void buildConfigUrl(HttpServletRequest request) {
90
90
swaggerUiConfig .setOauth2RedirectUrl (ServletUriComponentsBuilder .fromCurrentContextPath ().path (this .uiRootPath ).path (swaggerUiConfig .getOauth2RedirectUrl ()).build ().toString ());
91
91
}
92
92
}
93
-
93
+
94
94
private void calculateUiRootPath () {
95
95
StringBuilder sbUrl = new StringBuilder ();
96
96
if (StringUtils .isNotBlank (mvcServletPath ))
Original file line number Diff line number Diff line change 1
1
package org .springdoc .ui ;
2
2
3
3
import org .apache .commons .lang3 .StringUtils ;
4
- import org .springdoc .core .OpenAPIBuilder ;
4
+ import org .springdoc .core .SpringDocConfiguration ;
5
5
import org .springdoc .core .SwaggerUiConfigProperties ;
6
6
import org .springframework .beans .factory .annotation .Autowired ;
7
7
import org .springframework .beans .factory .annotation .Value ;
25
25
26
26
@ Controller
27
27
@ ConditionalOnProperty (name = SPRINGDOC_SWAGGER_UI_ENABLED , matchIfMissing = true )
28
- @ ConditionalOnBean (OpenAPIBuilder .class )
28
+ @ ConditionalOnBean (SpringDocConfiguration .class )
29
29
public class SwaggerWelcome {
30
30
31
31
@ Autowired
You can’t perform that action at this time.
0 commit comments