From 4c2c2c8494114444535b74ed6c154c84af941f32 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Wed, 19 Jul 2023 07:20:44 +0900 Subject: [PATCH] Added explanation about GraalVM --- src/docs/asciidoc/faq.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/docs/asciidoc/faq.adoc b/src/docs/asciidoc/faq.adoc index 03dde1f..0154af5 100644 --- a/src/docs/asciidoc/faq.adoc +++ b/src/docs/asciidoc/faq.adoc @@ -927,6 +927,15 @@ If you have some time, do not hesitate to test it before the next release. For the OpenAPI REST endpoints, you just need to build your application with the spring `native` profile. +If you give `@OpenAPIDefinition` or `@SecurityScheme` to a class that has no implementation, that class will disappear when you natively compile. +To avoid this, give the class a `@Configuration`. +---- +@Configuration +@OpenAPIDefinition(info = @Info(title = "My App", description = "description")) +public class OpenAPIConfig { +} +---- + === What is the compatibility matrix of `springdoc-openapi` with `spring-boot` ? `springdoc-openapi 2.x` is compatible with `spring-boot 3`.