12.2. 在 Red Hat OpenShift Container Platform 上为 Spring Boot 应用程序添加健康检查扩展
您可以为基于 Red Hat OpenShift Container Platform 上的 Spring Boot 的 Kogito 微服务添加健康检查扩展。
流程
在命令终端中,导航到项目的 pom.xml
文件,并添加以下 Spring Boot actuator 依赖项:
Red Hat OpenShift Container Platform 上的 Spring Boot 应用程序 Spring Boot actuator 依赖项
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies>