Skip to content

Commit d1b8d75

Browse files
committed
Getting 404 when trying to access swagger-ui of a native spring-boot app. Fixes #1394.
1 parent b2f298a commit d1b8d75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

springdoc-openapi-native/src/main/java/org/springdoc/nativex/core/SpringDocHints.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
@Lazy(false)
297297
@Configuration(proxyBeanMethods = false)
298298
@ConditionalOnProperty(name = SPRINGDOC_ENABLED, matchIfMissing = true)
299+
@ResourceHint(patterns = SpringDocHints.SPRINGDOC_CONFIG_PROPERTIES)
299300
public class SpringDocHints implements InitializingBean {
300301

301302
/**
@@ -306,7 +307,7 @@ public class SpringDocHints implements InitializingBean {
306307
/**
307308
* The constant SPRINGDOC_CONFIG_PROPERTIES.
308309
*/
309-
private static final String SPRINGDOC_CONFIG_PROPERTIES = "springdoc.config.properties";
310+
public static final String SPRINGDOC_CONFIG_PROPERTIES = "springdoc.config.properties";
310311

311312
/**
312313
* The constant SPRINGDOC_SWAGGERUI_VERSION.

0 commit comments

Comments
 (0)