@ConfigurationProperties returns property placeholder instead of null

I also encountered such a problem ... And it has been present for a long time

  • Unresolved Placeholder Validation for Spring Boot Configuration Properties
  • https://github.com/spring-projects/spring-boot/issues/4302
  • https://github.com/spring-projects/spring-boot/issues/1768

I found only one place where at least some solution is attached

https://davidagood.com/spring-boot-fail-on-missing-env-vars/