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 @@ -928,6 +928,15 @@ If you have some time, do not hesitate to test it before the next release.
928928
929929For 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
You can’t perform that action at this time.
0 commit comments