# liu **Repository Path**: lxianq/liu ## Basic Information - **Project Name**: liu - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-21 - **Last Updated**: 2024-05-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目简介 台州数字路桥后端项目,... ## 项目架构 * digital-roadbridge * digital-roadbridge-common 公共依赖及配置 * digital-roadbridge-web 业务模块 * digital-roadbridge-web-api 枚举、常量、类型转换及各种pojo * digital-roadbridge-web-core 业务核心 mapper、service、biz、controller、task ### 架构详解 #### digital-roadbridge-common模块 * annoation:自定义注解:Biz注解、免登录注解 * config:统一事务配置、WebMvc配置、knife4j配置、redis配置 * context:SpringContextHolder(ApplicationContext静态持有) * convert:mapstruct方式类转换基类 * exception:业务异常定义及统一异常处理 * helper:json、redis、时间、登录、Servlet、服务器文件上传下载工具类 * listener:事件监听器for静态注入 * logbook:logbook请求出入参打印 * micrometer:Prometheus监控配置 * minio:minio配置及工具类 * mybatisplus:mybatis-plus配置及拓展其自动填充功能 * oauth:整合oauth2,拓展手机验证码登录授权方式 * pojo: controller、dto、vo基类及统一响应包装类、Java8时间模型处理、登录出入参包装类 * threadpool:线程池配置 * validation:参数校验相关,食用见docs/Validation参数校验使用参考.md * websocket:websocket整合,对接文档见docs/websocket食用须知.md #### digital-roadbridge-web模块 ##### digital-roadbridge-web-api模块 * constant:常量 * convert:mapstruct类转换器 * enum:枚举 * pojo:业务dto\entity\vo ##### digital-roadbridge-web-core模块 * biz:业务处理层,业务逻辑在此层处理,事务也在此层声明,入参:dto,出参:vo * controller:路由控制层,只允许调用biz层,几乎不进行任何业务逻辑,入参:dto,出参:vo * mapper:mapper.xml的映射,自定义SQL不建议使用注解方式,入参:dto、entity,出参:vo、entity * service:service层,建议通用方法在此层进行抽取,防止代码冗余,入参:dto、entity,出参:vo、entity * task:定时任务 * resources/db/migration:数据库脚本 * 注意:Controller->Biz->Service->Mapper严禁跨层依赖,出入参也严格遵守约定 # 部署方式 环境 | 公网服务器(内网)| jar包位置 | 启动命令 | ---|---|---|--- | | |