97.7. Spring Boot Auto-Configuration
当在 Spring Boot 中使用 openapi-java 时,请确保使用以下 Maven 依赖项来支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-openapi-java-starter</artifactId> </dependency>
组件支持 1 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.openapi.enabled | 启用 Camel Rest DSL 在 Spring Boot 中自动注册其 OpenAPI (如 swagger doc),允许 SpringDoc 等工具与 Camel 集成。 | true | 布尔值 |