Skip to content

Commit 4c2c2c8

Browse files
committed
Added explanation about GraalVM
1 parent 0aa7742 commit 4c2c2c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/docs/asciidoc/faq.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,15 @@ If you have some time, do not hesitate to test it before the next release.
927927

928928
For the OpenAPI REST endpoints, you just need to build your application with the spring `native` profile.
929929

930+
If you give `@OpenAPIDefinition` or `@SecurityScheme` to a class that has no implementation, that class will disappear when you natively compile.
931+
To avoid this, give the class a `@Configuration`.
932+
----
933+
@Configuration
934+
@OpenAPIDefinition(info = @Info(title = "My App", description = "description"))
935+
public class OpenAPIConfig {
936+
}
937+
----
938+
930939
=== What is the compatibility matrix of `springdoc-openapi` with `spring-boot` ?
931940
`springdoc-openapi 2.x` is compatible with `spring-boot 3`.
932941

0 commit comments

Comments
 (0)