Replies: 2 comments 2 replies
-
The only guidance we give is: domain-specific, functional decomposition on the top level. Whether you use a second-level, technical decomposition is a matter of taste. I, personally, would rather avoid it until the module package gets too big, but I can see that teams are familiar with such decomposition and would like to see it for navigational purposes. That said, with a top-level functional decomposition approach, the number of types in such technical packages usually is rather low anyway. In the example you give, your top-level packages don't sound very domain-specific in the first place. Unless you write a security application, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, one question I have is how do you deal with global security issues if you are using spring security just put it in a config folder at the top level? like:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know of a good blog post, or github repo, going over the idea for new apps using Spring Modulith from the ground up with a base level naming convention to follow?
It seems like it would be beneficial to have some kind of standard recipe to use for new apps
so long term working with projects created using the pattern would be easier to jump between -- or is this a false idea, if so please go over why so i can better grok it!
for example like:
Given the above exaple sturcture is it best practice to combine AAA into one root package? Same question for users/companies or is there a better way to organize this from the ground up? I think it would be great to have a commuity standard (for new projects), for basic generic packages that most Spring Boot Applications use?
Thanks for any input and/or suggested reading.
===> UPDATE
these are the ones I've been using after learning more about feature based structure and using Spring Modulith :
Does this seem like an OK flow going forward or am I missing a key point here?
Beta Was this translation helpful? Give feedback.
All reactions