I have a multimodule spring project and the structure is like:
Parent-Project|--module1|--Module2|--Module3 |--moduleA |--moduleB
module2 has db configs in properties file and is included as a dependency in module1.
So our db moved another server and I need to change module2 configs. Module1 has a external property file. I can change module1 config and build project again to get new configs but is there another way except that?
I checked below:
Spring boot configuration multi modules
using properties in a multi module Spring Boot project
How Can One Include Resources From Another Module In A Spring Boot Maven Multi Module Project
Spring-Boot multi module project load property-file
please consider its a junior dev question.