You are developing a Spring Boot application with a large team. How would you manage and segregate configuration properties for different modules?

  • By embedding configuration properties directly in the source code to ensure they are tightly coupled with their respective modules.
  • By relying on a centralized configuration service that manages properties for all modules in a monolithic manner.
  • By storing all configuration properties in a single file and maintaining a shared spreadsheet for tracking properties used by different modules.
  • By using Spring Boot's external configuration mechanisms like application.properties or application.yml files, and organizing them into separate folders or packages for each module.
When developing a Spring Boot application with a large team, it's best to use Spring Boot's external configuration mechanisms like application.properties or application.yml files. These can be organized into separate folders or packages for each module, making it easier to manage and segregate configuration properties. Storing all properties in a single file or embedding them in the source code is not a scalable or maintainable approach. A centralized configuration service can be complex and less flexible for individual modules.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *