Переглянути джерело

Application monitoring with actuator

dagarcos 2 роки тому
батько
коміт
fed069257a
2 змінених файлів з 5 додано та 0 видалено
  1. 4 0
      pom.xml
  2. 1 0
      src/main/resources/application.properties

+ 4 - 0
pom.xml

@@ -41,6 +41,10 @@
 		  <groupId>org.springframework.boot</groupId>
 		  <artifactId>spring-boot-starter-validation</artifactId>
 		</dependency>
+	    <dependency>
+	        <groupId>org.springframework.boot</groupId>
+	        <artifactId>spring-boot-starter-actuator</artifactId>
+	    </dependency>
 	</dependencies>
 
 	<build>

+ 1 - 0
src/main/resources/application.properties

@@ -1,2 +1,3 @@
 spring.messages.basename=messages
 spring.messages.encoding=UTF-8
+management.endpoints.web.exposure.include=*