需要引入actuator的依赖,比如
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
然后进行配置
management:
endpoints: web: exposure: include: health,info,env
讨论(0)