We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比较了下楼主的单模块与多模块示例,在多maven模块示例中,如果防腐层的SalersService的方法需要传domain的聚合根对象,那么infrastructure就需要依赖于domain模块,而现在domain已经依赖了infrastructure模块了,这样的话不就循环引用了吗?
The text was updated successfully, but these errors were encountered:
Hi,@dengxiangjun 多模块infrastructure依赖了domain,单模块domain依赖了infrastructure,其实在单模块中可以改成不依赖的,domain里面写接口,实现在基础设施层。
Sorry, something went wrong.
其实在单模块中可以改成不依赖的,domain里面写接口,实现在基础设施层。
确实有必要改成这样,不然第一次看很困惑;那么问题来了,这个接口该放哪里,放domain service?
No branches or pull requests
比较了下楼主的单模块与多模块示例,在多maven模块示例中,如果防腐层的SalersService的方法需要传domain的聚合根对象,那么infrastructure就需要依赖于domain模块,而现在domain已经依赖了infrastructure模块了,这样的话不就循环引用了吗?
The text was updated successfully, but these errors were encountered: