Hello everybody,
the thing is that SpringBoot comes along if the SpringCloud configuration which basically creates two application context initialisation steps after server startup (independent if SpringCloud config is deactivated or not => ).
The application.properties no matter where they are defined will be loaded in the second bootstrap step. But the CasConfigurationProperties will be loaded with the first Application Context - and the properties are not available here.
So what I did is to move to SpringBoot 2.7.14 and changed the file names to bootstrap-<profile>.properties.
Now the properties will be used for both initialisations.
I am not a Spring expert. This is what I found while debugging.
Best regards,
Conrad