Java web应用开发的基础框架, 数据库配置的Postgres Sql.
- Hinsteny Home
项目本身采用Maven管理, jdk1.8, 配置基础的SSM框架使用方法.
- Springmvc, mybatis, Dubbo, Sentinel
- postgres
title: 项目模块结构图
rest->facade: web-rest服务依赖service接口
facade->service: service是facade的实现
service->dal: service通过dal实现对数据库操作
service->>model: model中存放pojo对象
service->>test: test模块对service中接口进行测试
rest->>test: test模块对rest中restful服务进行测试
rest->>util: util模块对存放通用工具
note left of util: util模块后期考虑拆分出去
mvn clean compile package -Dmaven.test.skip=true -B
Functions:
- log4j2 config!
- Dubbo service config!
- Sentinel escort our service with flow control, concurrency, circuit breaking and load protection, to protect service stability!
- Persistence level could config multi datasource!
- use
PS: some little issues
- 启动dubbo服务时需要添加命令行参数 '-Ddubbo.application.logger=slf4j' 指定日志处理框架为slf4j, 这样日志才能被log4j2接收到;