You learned, in the previous chapter, how to use domain-driven design (DDD) to split your domain into bounded contexts.
In this chapter, you learn how to split your code using the cut lines defined in the previous chapter.
Applying Bounded Contexts to Java Packages
Our classes are already classified by component type, such as repository, service, etc.
We will move every component in a new package that includes the bounded context name. The name of each component has this format:
After refactoring, ...