Spring工具包-core

Spring工具包核心,定义基础DTO、异常及错误码

Posted by guanyang on 2022-06-08
Words 252 and Reading Time 1 Minutes
Viewed Times

概览

  • 定义DTO,规范输入输出格式,参考Response
  • 定义错误码、异常,参考CommonException
  • 定义事件接口契约,参考EventI
  • 添加FilterFilterChain支持,方便自由定制
  • 定义TraceId生成工具,参考TraceUtils
  • 添加StateMachine状态机,支持Fluent API调用
  • 定义枚举类标准,统一格式,参考IStdEnum

使用指南

工程结构解读

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
├── README.md
├── pom.xml
├── src
│ ├── main
│ ├── java
│ └── org
│ └── gy
│ └── framework
│ └── core
│ ├── dto //统一DTO定义,规范格式
│ ├── event //定义事件接口契约
│ ├── exception //定义异常及错误码
│ ├── filter //定义Filter和FilterChain
│ ├── statemachine //状态机定义
│ ├── support //常用支持类定义,例如枚举标准格式定义
│ ├── trace //定义TraceId生成工具
│ └── util //常用工具类,例如JSON工具

If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !

...

...

00:00
00:00