Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring boot and properties files in a multi module maven project

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here is my maven project structure ;

parent module
  pom.xml
agregator module
  pom.xml
  sub-module 1 (has Spring Boot configuration i.e. one class with @SpringBootApplication annotation + application.properties)
     pom.xml
  sub-module 2
     pom.xml
  sub-module 3 (has Spring Boot configuration i.e. one class with @SpringBootApplication annotation + application.properties)
     pom.xml
  sub-module 4 (has Spring Boot configuration i.e. one class with @SpringBootApplication annotation + application.properties)
     pom.xml


I am wondering if merging all application.properties files in a single one would be a good option.  If yes, where should i put it ?  Inside the agregator module/src/main/resources folder ?
Or should i keep a separated application.properties file for the sub modules that use it ? Knowing that it would help if we plan to make each module a microservice since each module would be more independant.

Thanks for helping.


 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic