BAEL-579 Added Actuator to Config Client
This commit is contained in:
parent
2b55217ee9
commit
42af88c3c2
@ -39,6 +39,11 @@
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-actuator</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
|
@ -3,6 +3,7 @@ package com.baeldung;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@SpringBootApplication
|
||||
@RestController
|
||||
@RefreshScope
|
||||
public class SpringCloudConfigClientApplication {
|
||||
|
||||
@Value("${user.role}")
|
||||
|
@ -4,3 +4,4 @@ spring.cloud.config.uri=http://localhost:8888
|
||||
spring.cloud.config.username=root
|
||||
spring.cloud.config.password=s3cr3t
|
||||
spring.cloud.config.fail-fast=true
|
||||
management.security.enabled=false
|
Loading…
x
Reference in New Issue
Block a user