I have jdbc property files which I take from external configuration web-service In spring boot in order to set mysql props it\'s easy as adding those to application.properti
If you need do to this for testing purposes: since spring-test 5.2.5 you can use @DynamicPropertySource:
@DynamicPropertySource
static void setDynamicProperties(DynamicPropertyRegistry registry) {
registry.add("some.property", () -> some.way().of(supplying).a(value) );
}
Takes precedence over pretty much all of the other ways of supplying properties. The method must be static though.