Skip to content

Commit 7a84fd2

Browse files
committed
Added support for Refresh via Actuator
1 parent 778e5e0 commit 7a84fd2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

java/src/main/java/com/amido/stacks/workloads/menu/service/v1/SecretsService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import lombok.extern.slf4j.Slf4j;
44
import org.springframework.beans.factory.annotation.Value;
5+
import org.springframework.cloud.context.config.annotation.RefreshScope;
56
import org.springframework.stereotype.Service;
67

78
@Service
89
@Slf4j
10+
@RefreshScope
911
public class SecretsService {
1012

1113
@Value(value = "${stacks-secret-1:secret-not-available}")

java/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ management:
2222
web:
2323
base-path: /
2424
exposure:
25-
include: health, info, beans
25+
include: health, info, beans, refresh
2626

2727
springdoc:
2828
swagger-ui:

0 commit comments

Comments
 (0)