【发布时间】:2021-03-04 23:25:30
【问题描述】:
作为一名软件开发人员,我曾经创建和维护 JakartaEE 后端应用程序。
对于多模块 maven 项目,boundary - control - entity 架构似乎非常适合,尤其是在使用 service 作为存储库并使用 rest 作为用例时。 p>
目前我们需要将一个中型项目转移到 Spring 中(war 打包),问题是:
B-C-E 架构会很好地匹配现代 MVC 框架吗?
另外,也许 module-as-use-case 会是更好的父子划分方法?
让我举个例子:
service
settlement
boundary
control
entity
user
boundary
control
entity
rest
settlement
boundary
control
entity
user
boundary
control
entity
mail
boundary
control
entity
calculation
boundary
control
entity
项目父级是 pom,并有一个 spring-boot-starter-parent 作为其父级。
【问题讨论】:
标签: java spring spring-boot spring-mvc architecture