1. 程式人生 > >02-SpringBoot監控與運維

02-SpringBoot監控與運維

1. pom.xml新增actuator依賴

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

2. application.yml新增監控配置

management:
  server:
    port: 8081

3. 監控視窗