Skip to content

Commit a5fcb66

Browse files
authored
Merge pull request #56 from uc4w6c/add_aboud_graalvm
Added explanation about GraalVM
2 parents d45e77e + 4c2c2c8 commit a5fcb66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/docs/asciidoc/faq.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,15 @@ If you have some time, do not hesitate to test it before the next release.
928928

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

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+
931940
=== What is the compatibility matrix of `springdoc-openapi` with `spring-boot` ?
932941
`springdoc-openapi 2.x` is compatible with `spring-boot 3`.
933942

0 commit comments

Comments
 (0)