We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aa7742 commit 4c2c2c8Copy full SHA for 4c2c2c8
1 file changed
src/docs/asciidoc/faq.adoc
@@ -927,6 +927,15 @@ If you have some time, do not hesitate to test it before the next release.
927
928
For the OpenAPI REST endpoints, you just need to build your application with the spring `native` profile.
929
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
+
939
=== What is the compatibility matrix of `springdoc-openapi` with `spring-boot` ?
940
`springdoc-openapi 2.x` is compatible with `spring-boot 3`.
941
0 commit comments