We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d45e77e + 4c2c2c8 commit a5fcb66Copy full SHA for a5fcb66
src/docs/asciidoc/faq.adoc
@@ -928,6 +928,15 @@ If you have some time, do not hesitate to test it before the next release.
928
929
For the OpenAPI REST endpoints, you just need to build your application with the spring `native` profile.
930
931
+If you give `@OpenAPIDefinition` or `@SecurityScheme` to a class that has no implementation, that class will disappear when you natively compile.
932
+To avoid this, give the class a `@Configuration`.
933
+----
934
+@Configuration
935
+@OpenAPIDefinition(info = @Info(title = "My App", description = "description"))
936
+public class OpenAPIConfig {
937
+}
938
939
+
940
=== What is the compatibility matrix of `springdoc-openapi` with `spring-boot` ?
941
`springdoc-openapi 2.x` is compatible with `spring-boot 3`.
942
0 commit comments