Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 73091fe

Browse files
✨ feat(src/main/java/br/com/imaginer/resqueuegateway/config/ActuatorConfig.java): Added custom InfoContributor for actuator configuration.
1 parent f4c5ac3 commit 73091fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package br.com.imaginer.resqueuegateway.config;
2+
3+
import org.springframework.boot.actuate.info.InfoContributor;
4+
import org.springframework.context.annotation.Bean;
5+
import org.springframework.context.annotation.Configuration;
6+
7+
import java.util.Map;
8+
9+
@Configuration
10+
public class ActuatorConfig {
11+
12+
private static final String APP = "ResQueue Gateway";
13+
private static final String VERSION = "1.0.0";
14+
private static final String DESCRIPTION = "Eureka Gateway from ResQueue";
15+
16+
@Bean
17+
public InfoContributor customInfoContributor() {
18+
return builder -> {
19+
builder.withDetail("app", Map.of("name", APP, "version", VERSION));
20+
builder.withDetail("description", DESCRIPTION);
21+
};
22+
}
23+
24+
}

0 commit comments

Comments
 (0)