File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -927,6 +927,15 @@ If you have some time, do not hesitate to test it before the next release.
927927
928928For 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
You can’t perform that action at this time.
0 commit comments