79601518

Date: 2025-05-01 07:17:04
Score: 1.5
Natty:
Report link

You need to add the following dependency to your maven pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-configuration-processor</artifactId>
    <version>3.4.5</version>
</dependency>

And also an annotation on the main class @ConfigurationPropertiesScan

@SpringBootApplication
@ConfigurationPropertiesScan
public class DemoApplication {

   public static void main(String[] args) {
      SpringApplication.run(DemoApplication.class, args);
   }

}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @ConfigurationPropertiesScan
  • Low reputation (1):
Posted by: Andrew Samsonov