r/SpringBoot • • Sep 29 '24

Package structure

Post image

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

43 comments sorted by

View all comments

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.

1

u/anonystick Oct 25 '24

I think so too.