r/SpringBoot • u/HappyPurchase72 • Sep 29 '24
Package structure
What do you think about this package structure? What packages or layers would you add or remove if you work with microservices architecture?
43
Upvotes
r/SpringBoot • u/HappyPurchase72 • Sep 29 '24
What do you think about this package structure? What packages or layers would you add or remove if you work with microservices architecture?
1
u/Deniz58 Oct 01 '24
I suggest a folder per entity as follows:
person person.entity person.repository person.service
Etc, keeps everything nicely co located and i have a global folder where i put some global config like security and advices.