NoKey
V2EX  ›  Java

大家的 springboot 项目中,有用到哪些高大上的目录名字呢?

  •  
  •   NoKey · Jan 8, 2025 · 3876 views
    This topic created in 489 days ago, the information mentioned may be changed or developed.
    基于 springboot 的项目,大部分还是 mvc 结构,然后产生了常用的目录名字,例如
    controller
    service
    dao
    model
    等等,但是,这些目录一看就没 bi 格,没法进行年度回报
    于是,根据 ddd 理论,衍生出一套目录层级
    interfaces
    application
    domain
    infrastructure
    persistence
    等等,对于开发人员来说,部分写法有一定变化,例如 pojo 不再是单纯的 pojo ,里面会增加这个 pojo 的各种工具方法,但是,总体来说,还是脱离不了 mvc 这个结构
    大家的项目里面,有没有其他高大上的目录层级分层方法呢?学习一下~
    8 replies    2025-01-09 09:58:59 +08:00
    chendy
        1
    chendy  
       Jan 8, 2025
    最近的一个不太大的项目,垂直分的
    /common
    /模块 A
    /模块 B
    niubiman
        2
    niubiman  
       Jan 8, 2025
    /DAL
    /BBL
    /ENTITIES
    你看如何
    NoKey
        3
    NoKey  
    OP
       Jan 8, 2025
    @niubiman 老哥,好像包名不让用大写啊
    Comyn
        4
    Comyn  
       Jan 8, 2025
    b 格和我牛马有什么关系
    halov
        5
    halov  
       Jan 8, 2025
    /framework
    /context
    /plugins
    编程就是图一乐 收收心找个电子厂上班了😅
    NoKey
        6
    NoKey  
    OP
       Jan 8, 2025
    @halov 三班倒,也是难受,上厕所要请假~
    pmman
        7
    pmman  
       Jan 8, 2025
    我们全是 dao/service/pojo/controller/config
    huzhizhao
        8
    huzhizhao  
       Jan 9, 2025
    big 跟我码农有什么关系?
    准时上班,准时下班
    一杯茶,一台手机摸一天
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4262 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:57 · PVG 08:57 · LAX 17:57 · JFK 20:57
    ♥ Do have faith in what you're doing.