From eb9815b6d6e8f038a352dbe98528bfb0cc0c6645 Mon Sep 17 00:00:00 2001 From: Zahid Khan Date: Mon, 8 May 2023 11:51:30 +0530 Subject: [PATCH] Match prefix same as draft. --- .../com/baeldung/error/configuration/MainConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-modules/spring-boot-properties-3/src/main/java/com/baeldung/error/configuration/MainConfiguration.java b/spring-boot-modules/spring-boot-properties-3/src/main/java/com/baeldung/error/configuration/MainConfiguration.java index 0b347ed54b..3c5fbc3006 100644 --- a/spring-boot-modules/spring-boot-properties-3/src/main/java/com/baeldung/error/configuration/MainConfiguration.java +++ b/spring-boot-modules/spring-boot-properties-3/src/main/java/com/baeldung/error/configuration/MainConfiguration.java @@ -4,7 +4,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration -@ConfigurationProperties(prefix = "profileProperties") +@ConfigurationProperties(prefix = "profile.profileProperties") public class MainConfiguration { private String name;