# Liuyi-modular **Repository Path**: FLiuYi/liuyi-modular ## Basic Information - **Project Name**: Liuyi-modular - **Description**: Springboot 常用开发工具集,mybatis-plus扩展类、Web模块常用类扩展类、SpringSecurity扩展等等、快速开发、单独引入 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2020-10-13 - **Last Updated**: 2021-06-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Liuyi-modular #### 介绍 Springboot 常用开发工具集,mybatis-plus扩展类、Web模块常用类扩展类、SpringSecurity扩展等等、快速开发、单独引入 #### 使用文档 [详细文档](https://gitee.com/FLiuYi/liuyi-modular/wikis) #### 功能介绍 ##### liuyi-framework ``` - 请求解密,返回解密功能 - SpringTypeFactory 工厂模式 使用SpringTypeStaticFactory.get(class,参数) 快速实现工厂模式 - SpringInitConfig 初始化配置、继承该接口可在Spring Bean初始化完成后执行 - SpringUploadTool SpringWeb的上传工具类 - xss配置 - 常用ObjectMapper配置 Timestamp、LocalDateTime、BigDecimal类型转换 - SprngMvc LocalDateTime/LocalDate参数转换 - 统一的web异常处理及异常日志打印 - swagger-ui放行、以及开启跨域 ``` ##### liuyi-mybatis ``` - mybatis-plus 代码生成 - PageHelper 引入及配置 - 自定义 QueryCondition 模式查询 - 自定义 IBaseMapper 父接口,支持多表查询,自定义SQL语句查询 - 自定义 BaseEntity 父类,实现createTime以及updateTime 新增/修改自动填充 - 自定义 IBaseService 父接口,实现常用方法和直接获取对应的IBaseMapper(不用手动转换类型) ``` ##### liuyi-security 在McSecurity的基础上扩展、以便于更方便的使用、也可以自行扩展McSecurity ``` - 抽象Security配置,在使用的时候更方便,可以继承SecurityAbstractConfig使用 - 实现jdbc的权限验证,不用使用注解方式,不用使用配置方式,通过数据库得知该接口是否可访问 ``` ##### liuyi-pay 使用IJPAY 封装一下方法,支持多租户模式 [IJPay](https://gitee.com/javen205/IJPay?_from=gitee_search) ``` - 实现支付宝支付服务类 - 实现微信支付服务类 - 配置文件方式参考(pay.properties) wxpay.beans[0].appId= wxpay.beans[0].appSecret= wxpay.beans[0].mchId= wxpay.beans[0].partnerKey= wxpay.beans[0].certPath= wxpay.beans[0].domain= alipay.beans[0].appId= alipay.beans[0].privateKey= alipay.beans[0].publicKey= alipay.beans[0].appCertPath= alipay.beans[0].aliPayCertPath= alipay.beans[0].aliPayRootCertPath= alipay.beans[0].serverUrl= alipay.beans[0].domain= - 数据库读取模式(暂时不支持) ``` 目前只是实现了部分支付方式,以后会慢慢追加 ##### liuyi-tools ``` - SpringContext 上下文 - 自定义 Response 返回类,可用ResponseCall类操作 - 自定义统一业务异常 - 封装WebUtil工具集 - 实现table格式的poi导出,可大批量导出,自动压缩,自动分页查询等 ```