Here is the quote from https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-application-property-files
If you use environment variables rather than system properties, most operating systems disallow period-separated key names, but you can use underscores instead (for example, spring.config.name instead of spring.config.name).
I suppose it should be spring_config_name.
I wasn't really sure how to do this so I created an issue anyways. Guide me for the future so I don't create useless issues.