3

关于微服务多模块问题

 3 years ago
source link: https://www.v2ex.com/t/780635
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

关于微服务多模块问题

  amrom · 6 小时 17 分钟前 · 571 次点击

最近发现一个问题,公司的项目做了服务拆分,但是每个服务的目录结构是多模块的,类似如下:

server1:
  server1-api
    src
      main ...
    pom.xml
  server1-dao
    src
      main ...
    pom.xml
  server1-provider
  ...
  pom.xml
  ...

server2:
 ...

个人理解是,既然已经拆分了,多模块显然增加了复杂度,个人更偏向于一个 jar 包完成一个功能的思想。

想看看大家怎么看这种项目结构


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK