Skip to content

yanbinjia/springboot-sever-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

330 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-sever-demo

Web server application demo with springboot and some common functions.
It is a simple work,just put the pieces together for developing faster and personal study.
(Main version: Spring Boot 2.2.8, JDK 1.8)

工程结构

  • bean: entity,vo,dto等java bean
  • common: 工具,异常,常量,interceptor,listener等
  • config: spring web config 和一些应用配置
  • dao: 数据访问层相关实现
  • manager: 通用业务处理层: 三方封装、Service通用能力下沉、组合dao操作
  • service: 具体业务逻辑服务
  • web: Controller

集成功能

  • logback
  • mybatis-3
  • tk.mybatis Mapper
  • Mybatis-PageHelper
  • druid 连接池
  • caffeine cache
  • spring schedule, quartz
  • Java template engine:Thymeleaf
  • token签发和验证(access&refresh), HandlerInterceptorAdapter和jwt实现
  • 接口参数签名和验证(md5/sha256), HandlerInterceptorAdapter实现
  • XSS(Cross Site Scripting) filter, simple implement
  • 异常处理和日志打印(error log), Controller请求和响应日志打印(access log), @ControllerAdvice实现
  • RateLimitAspect, 基于guava RateLimiter接口限流,Controller方法注解 @RateLimit(qps = 50)
  • 工具封装:SpringUtil、HashUtil、RandomUtil、DateUtil、Base64Util、ImageUtil、RedisUtil等
  • 好用工具:guava、commons-lang3、commons-io、commons-collections4、commons-codec、jsoup、lombok
  • 图片验证码(utils.captcha with EasyCaptcha)
  • 二维码生成(utils.qrcode with ZXing)

About

springboot-sever-demo

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages