Skip to content

Commit bcc721c

Browse files
committed
Use spring.application.name as identifier of the application
1 parent 714349f commit bcc721c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spring.application.name=spring-boot-admin

spring-boot-starter-admin-client/src/main/java/de/codecentric/boot/admin/services/SpringBootAdminRegistratorTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void check() {
4646
Assert.notNull(env.getProperty("spring.boot.admin.url"),
4747
"The URL of the spring-boot-admin application is mandatory");
4848
Assert.notNull(env.getProperty("server.port"), "The server port of the application is mandatory");
49-
Assert.notNull(env.getProperty("info.id"), "The id of the application is mandatory");
49+
Assert.notNull(env.getProperty("spring.application.name"), "The id of the application is mandatory");
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)