Skip to content

Commit d765be6

Browse files
author
springdoc
committed
Added support for spring-context-indexer. fixes #262
1 parent 3da06b8 commit d765be6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

springdoc-openapi-ui/src/main/java/org/springdoc/ui/SwaggerWelcome.java

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import org.springdoc.core.SwaggerUiConfigProperties;
66
import org.springframework.beans.factory.annotation.Autowired;
77
import org.springframework.beans.factory.annotation.Value;
8+
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
9+
import org.springframework.stereotype.Controller;
810
import org.springframework.web.bind.annotation.GetMapping;
911
import org.springframework.web.util.UriComponentsBuilder;
1012

@@ -15,6 +17,7 @@
1517
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
1618
import static org.springframework.web.servlet.view.UrlBasedViewResolver.REDIRECT_URL_PREFIX;
1719

20+
@Controller
1821
class SwaggerWelcome {
1922

2023
@Value(API_DOCS_URL)

0 commit comments

Comments
 (0)