Configuration files should ideally be external to any microservice. A hierarchy of levels can provide for override of any specific variable. I especially find it useful to store configuration in a globally accessible place like S3 on top of passing in values at runtime as environment variables.
Pattern: Spring PropertySourcesPlaceholderConfigurer
see the base class https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.html and https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html