Coder Social home page Coder Social logo

bu-zheng / springboot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.4 MB

springboot多模块项目。集成springboot,jpa,mybatis(pagehelper,mybatis-generator),redis,shiro(shiro分支),druid,RabbitMQ,log4j2,swagger2,email,rsa加密,基于注解接口幂等设计,基于注解接口限流,全局异常处理,分布式全局id雪花算法,二维码,验证码,文件上传,阿里支付,微信支付,快递鸟快递查询等。一些常用util。一些常用类的api使用demo

Java 89.46% PLSQL 3.50% PLpgSQL 7.04%

springboot's Introduction

springboot多模块项目

邮箱:[email protected]

介绍

本项目集成springboot,jpa,mybatis(pagehelper,mybatis-generator),redis,shiro(shiro分支),druid,RabbitMQ,log4j2,swagger2,email,rsa加密,基于注解接口幂等设计,基于注解接口限流,全局异常处理,xxl-job,分布式全局id雪花算法,二维码,验证码,防盗链,文件上传,阿里支付,微信支付,快递鸟快递查询等。一些常用util。一些常用类的api使用demo!

本项目适合3年以内工作经验的同学学习和借鉴,有不足之处,请大家指出,互相学习!

软件架构

软件架构说明

启动环境

  1. jdk1.8
  2. maven
  3. redis
  4. rabbitmq
  5. lombok插件
  6. xxl-job服务

项目说明

  1. boot-service/com.xwbing.datasource-(JpaDataSourceConfig,MybatisDataSourceConfig)
  2. boot-service/com.xwbing.demo -常用api的使用
  3. boot-service/com.xwbing.rabiit -rabbitmq使用
  4. boot-service/com.xwbing.redis -redis自动配置使用
  5. boot-service/com.xwbing.util.captcha -验证码
  6. boot-service/com.xwbing.util.DateUtil2 -java8日期工具类
  7. boot-service/com.xwbing.util.DigestsUtil -MD5/SHA-1
  8. boot-service/com.xwbing.util.EmailUtil -邮箱工具类
  9. boot-service/com.xwbing.util.EncodeUtil -编码解码工具类
  10. boot-service/com.xwbing.util.ExcelUtil -excel工具类
  11. boot-service/com.xwbing.util.HttpUtil -httpcliet工具类
  12. boot-service/com.xwbing.util.KdniaoUtil -快递鸟快递查询
  13. boot-service/com.xwbing.util.PassWordUtil -密码工具类
  14. boot-service/com.xwbing.util.QRCodeUtil -二维码工具类
  15. boot-service/com.xwbing.util.RSAUtil -rsa非对称加密工具类
  16. boot-service/com.xwbing.util.TraceIdGenerateWorker -分布式全局id雪花算法
  17. boot-service/com.xwbing.util.ZipUtil.java -压缩工具类
  18. boot-service/generatorConfig.xml -mybatis自动生成插件配置
  19. boot-web/com.xwbing.configuration -核心配置包
  20. boot-web/com.xwbing.handler.FlowLimiterAspect -基于注解接口限流
  21. boot-web/com.xwbing.handler.GlobalExceptionHandler -全局异常处理
  22. boot-web/com.xwbing.handler.IdempotentAspect -基于注解接口幂等
  23. boot-web/com.xwbing.handler.LoginInterceptor -登录拦截器
  24. boot-web/com.xwbing.handler.UrlPermissionsInterceptor -权限拦截器
  25. boot-web/com.xwbing.handler.WebLogAspect -基于注解日志切面
  26. boot-web/com.xwbing.handler.FileFilter -防盗链
  27. boot-web/data.boot_module_ddl.sql -数据库脚本
  28. boot-web/data.bootModule.pdm -表结构
  29. boot-web/log4j2.xml -log4j2配置

接口说明

boot-web/config.properties 里面可以开启登录拦截器和权限拦截器 如果开启权限,得在权限接口里添加权限,否则一些接口无法访问

  1. /common/getSign 获取签名,用于所有新增接口请求头中,防止表单重复提交
  2. /user/login 登录接口,登录时会返回token,如果开启登录拦截器,所有接口必须有token请求头才可以访问
  3. /doc swagger文档映射接口

springboot's People

Contributors

xiangwbs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.