Skip to content

Commit 61cd850

Browse files
author
Ivetted
committed
Spring actuator implemented
1 parent 56b0155 commit 61cd850

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ dependencies {
4848
compile('org.springframework.cloud:spring-cloud-starter-oauth2')
4949
compile('org.springframework.cloud:spring-cloud-starter-zuul')
5050
compile('org.springframework.boot:spring-boot-starter-web')
51+
compile('org.springframework.boot:spring-boot-starter-actuator')
52+
compile('org.springframework.boot:spring-boot-starter-security')
53+
compile('org.springframework.data:spring-data-rest-hal-browser')
5154
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
5255
testCompile ('org.springframework.cloud:spring-cloud-starter-eureka-server')
5356
testCompile('com.jayway.restassured:rest-assured:2.5.0')

src/main/resources/application.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ zuul:
1414
security:
1515
oauth2:
1616
resource:
17-
userInfoUri: http://localhost:8181/uaa/user
17+
userInfoUri: http://localhost:8080/uaa/user
1818
ignored: /catalog/**
1919
eureka:
2020
instance:
@@ -24,7 +24,10 @@ eureka:
2424
fetchRegistry: true
2525
serviceUrl:
2626
defaultZone: http://discovery-service:8761/eureka/
27-
27+
management:
28+
security:
29+
enabled: false
30+
context-path: /actuator
2831
---
2932
spring:
3033
profiles: docker

0 commit comments

Comments
 (0)