Skip to content

houjie1212/webconfig-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web项目通用配置

  1. 全局返回数据结构封装
{
  "success": true,
  "code": "0000",
  "msg": "操作成功",
  "data": null // obj or list
}
  1. 返回值序列化
1. Long -> String
2. BigDecimal -> String
3. Date -> yyyy-MM-dd HH:mm:ss
  1. 全局异常捕获和通用异常类封装
可继承BusinessException类扩展自定义异常
  1. xss过滤器
xss:
  request:
    enabled: true # 默认false
    patterns:
      -
    excludes:
      -
  response:
    enabled: true # 默认false
  1. 特殊类型请求参数自动绑定
1. Date类型
2. 枚举类型,实现BaseEnum接口
  1. logback默认配置
  2. 参数验证通用分组

About

web项目常用配置

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages