feat:项目1.11
parent
006c7004ba
commit
1c93d5b555
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 RuoYi
|
||||
Copyright (c) 2018 McWl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
|
74
README.md
74
README.md
|
@ -1,30 +1,14 @@
|
|||
<p align="center">
|
||||
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
|
||||
</p>
|
||||
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.8</h1>
|
||||
<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
|
||||
<p align="center">
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.8-brightgreen.svg"></a>
|
||||
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
|
||||
</p>
|
||||
|
||||
## 平台简介
|
||||
|
||||
若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
|
||||
|
||||
* 前端采用Vue、Element UI。
|
||||
* 后端采用Spring Boot、Spring Security、Redis & Jwt。
|
||||
* 权限认证使用Jwt,支持多终端认证系统。
|
||||
* 支持加载动态权限菜单,多方式轻松权限控制。
|
||||
* 高效率开发,使用代码生成器可以一键生成前后端代码。
|
||||
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://gitcode.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
|
||||
* 提供了单应用版本[RuoYi-Vue-fast](https://gitcode.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://gitcode.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
|
||||
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
|
||||
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)
|
||||
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[McWl-Vue3](https://gitcode.com/yangzongzhuan/McWl-Vue3),保持同步更新。
|
||||
* 提供了单应用版本[McWl-Vue-fast](https://gitcode.com/yangzongzhuan/McWl-Vue-fast),Oracle版本[McWl-Vue-Oracle](https://gitcode.com/yangzongzhuan/McWl-Vue-Oracle),保持同步更新。
|
||||
* 不分离版本,请移步[McWl](https://gitee.com/y_project/McWl),微服务版本,请移步[McWl-Cloud](https://gitee.com/y_project/McWl-Cloud)
|
||||
* 阿里云折扣场:[点我进入](http://aly.mcwl.vip),腾讯云秒杀场:[点我进入](http://txy.mcwl.vip)
|
||||
|
||||
## 内置功能
|
||||
|
||||
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
|
||||
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
|
||||
3. 岗位管理:配置系统用户所属担任职务。
|
||||
|
@ -43,53 +27,3 @@
|
|||
16. 缓存监控:对系统的缓存信息查询,命令统计等。
|
||||
17. 在线构建器:拖动表单元素生成相应的HTML代码。
|
||||
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
|
||||
|
||||
## 在线体验
|
||||
|
||||
- admin/admin123
|
||||
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
|
||||
|
||||
演示地址:http://vue.ruoyi.vip
|
||||
文档地址:http://doc.ruoyi.vip
|
||||
|
||||
## 演示图
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
|
||||
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## 若依前后端分离交流群
|
||||
|
||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=5bVB1og) [](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [](https://jq.qq.com/?_wv=1027&k=51G72yr) [](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [](https://jq.qq.com/?_wv=1027&k=SpyH2875) [](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=DkugnCg68PevlycJSKSwjhFqfIgrWWwR&authKey=pR1Pa5lPIeGF%2FFtIk6d%2FGB5qFi0EdvyErtpQXULzo03zbhopBHLWcuqdpwY241R%2F&noverify=0&group_code=151450850) 点击按钮入群。
|
|
@ -7,16 +7,16 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|||
/**
|
||||
* 启动程序
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
public class RuoYiApplication
|
||||
public class McWlApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(RuoYiApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
SpringApplication.run(McWlApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 魔创未来启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
" .-------. ____ __ \n" +
|
||||
" | _ _ \\ \\ \\ / / \n" +
|
||||
" | ( ' ) | \\ _. / ' \n" +
|
|
@ -6,13 +6,13 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
|||
/**
|
||||
* web容器中进行部署
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class RuoYiServletInitializer extends SpringBootServletInitializer
|
||||
public class McWlServletInitializer extends SpringBootServletInitializer
|
||||
{
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
|
||||
{
|
||||
return application.sources(RuoYiApplication.class);
|
||||
return application.sources(McWlApplication.class);
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ import org.springframework.util.FastByteArrayOutputStream;
|
|||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.google.code.kaptcha.Producer;
|
||||
import com.mcwl.common.config.RuoYiConfig;
|
||||
import com.mcwl.common.config.McWlConfig;
|
||||
import com.mcwl.common.constant.CacheConstants;
|
||||
import com.mcwl.common.constant.Constants;
|
||||
import com.mcwl.common.core.domain.AjaxResult;
|
||||
|
@ -23,7 +23,7 @@ import com.mcwl.system.service.ISysConfigService;
|
|||
/**
|
||||
* 验证码操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
public class CaptchaController
|
||||
|
@ -61,7 +61,7 @@ public class CaptchaController
|
|||
BufferedImage image = null;
|
||||
|
||||
// 生成验证码
|
||||
String captchaType = RuoYiConfig.getCaptchaType();
|
||||
String captchaType = McWlConfig.getCaptchaType();
|
||||
if ("math".equals(captchaType))
|
||||
{
|
||||
String capText = captchaProducerMath.createText();
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import com.mcwl.common.config.RuoYiConfig;
|
||||
import com.mcwl.common.config.McWlConfig;
|
||||
import com.mcwl.common.constant.Constants;
|
||||
import com.mcwl.common.core.domain.AjaxResult;
|
||||
import com.mcwl.common.utils.StringUtils;
|
||||
|
@ -24,7 +24,7 @@ import com.mcwl.framework.config.ServerConfig;
|
|||
/**
|
||||
* 通用请求处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/common")
|
||||
|
@ -53,7 +53,7 @@ public class CommonController
|
|||
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
|
||||
}
|
||||
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
|
||||
String filePath = RuoYiConfig.getDownloadPath() + fileName;
|
||||
String filePath = McWlConfig.getDownloadPath() + fileName;
|
||||
|
||||
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
||||
FileUtils.setAttachmentResponseHeader(response, realFileName);
|
||||
|
@ -78,7 +78,7 @@ public class CommonController
|
|||
try
|
||||
{
|
||||
// 上传文件路径
|
||||
String filePath = RuoYiConfig.getUploadPath();
|
||||
String filePath = McWlConfig.getUploadPath();
|
||||
// 上传并返回新文件名称
|
||||
String fileName = FileUploadUtils.upload(filePath, file);
|
||||
String url = serverConfig.getUrl() + fileName;
|
||||
|
@ -104,7 +104,7 @@ public class CommonController
|
|||
try
|
||||
{
|
||||
// 上传文件路径
|
||||
String filePath = RuoYiConfig.getUploadPath();
|
||||
String filePath = McWlConfig.getUploadPath();
|
||||
List<String> urls = new ArrayList<String>();
|
||||
List<String> fileNames = new ArrayList<String>();
|
||||
List<String> newFileNames = new ArrayList<String>();
|
||||
|
@ -146,7 +146,7 @@ public class CommonController
|
|||
throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource));
|
||||
}
|
||||
// 本地资源路径
|
||||
String localPath = RuoYiConfig.getProfile();
|
||||
String localPath = McWlConfig.getProfile();
|
||||
// 数据库资源地址
|
||||
String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX);
|
||||
// 下载名称
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.mcwl.system.domain.SysCache;
|
|||
/**
|
||||
* 缓存监控
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/cache")
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.mcwl.framework.web.domain.Server;
|
|||
/**
|
||||
* 服务器监控
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/server")
|
||||
|
|
|
@ -23,7 +23,7 @@ import com.mcwl.system.service.ISysLogininforService;
|
|||
/**
|
||||
* 系统访问记录
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/logininfor")
|
||||
|
|
|
@ -22,7 +22,7 @@ import com.mcwl.system.service.ISysOperLogService;
|
|||
/**
|
||||
* 操作日志记录
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/operlog")
|
||||
|
|
|
@ -26,7 +26,7 @@ import com.mcwl.system.service.ISysUserOnlineService;
|
|||
/**
|
||||
* 在线用户监控
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/online")
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysConfigService;
|
|||
/**
|
||||
* 参数配置 信息操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/config")
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysDeptService;
|
|||
/**
|
||||
* 部门信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/dept")
|
||||
|
|
|
@ -28,7 +28,7 @@ import com.mcwl.system.service.ISysDictTypeService;
|
|||
/**
|
||||
* 数据字典信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/dict/data")
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysDictTypeService;
|
|||
/**
|
||||
* 数据字典信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/dict/type")
|
||||
|
|
|
@ -3,20 +3,20 @@ package com.mcwl.web.controller.system;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.mcwl.common.config.RuoYiConfig;
|
||||
import com.mcwl.common.config.McWlConfig;
|
||||
import com.mcwl.common.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 首页
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
public class SysIndexController
|
||||
{
|
||||
/** 系统基础配置 */
|
||||
@Autowired
|
||||
private RuoYiConfig ruoyiConfig;
|
||||
private McWlConfig mcwlConfig;
|
||||
|
||||
/**
|
||||
* 访问首页,提示语
|
||||
|
@ -24,6 +24,6 @@ public class SysIndexController
|
|||
@RequestMapping("/")
|
||||
public String index()
|
||||
{
|
||||
return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion());
|
||||
return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", mcwlConfig.getName(), mcwlConfig.getVersion());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ import com.mcwl.system.service.ISysMenuService;
|
|||
/**
|
||||
* 登录验证
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
public class SysLoginController
|
||||
|
|
|
@ -24,7 +24,7 @@ import com.mcwl.system.service.ISysMenuService;
|
|||
/**
|
||||
* 菜单信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/menu")
|
||||
|
|
|
@ -23,7 +23,7 @@ import com.mcwl.system.service.ISysNoticeService;
|
|||
/**
|
||||
* 公告 信息操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/notice")
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysPostService;
|
|||
/**
|
||||
* 岗位信息操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/post")
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import com.mcwl.common.annotation.Log;
|
||||
import com.mcwl.common.config.RuoYiConfig;
|
||||
import com.mcwl.common.config.McWlConfig;
|
||||
import com.mcwl.common.core.controller.BaseController;
|
||||
import com.mcwl.common.core.domain.AjaxResult;
|
||||
import com.mcwl.common.core.domain.entity.SysUser;
|
||||
|
@ -27,7 +27,7 @@ import com.mcwl.system.service.ISysUserService;
|
|||
/**
|
||||
* 个人信息 业务处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/user/profile")
|
||||
|
@ -124,7 +124,7 @@ public class SysProfileController extends BaseController
|
|||
if (!file.isEmpty())
|
||||
{
|
||||
LoginUser loginUser = getLoginUser();
|
||||
String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION);
|
||||
String avatar = FileUploadUtils.upload(McWlConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION);
|
||||
if (userService.updateUserAvatar(loginUser.getUsername(), avatar))
|
||||
{
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
|
|
|
@ -14,7 +14,7 @@ import com.mcwl.system.service.ISysConfigService;
|
|||
/**
|
||||
* 注册验证
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
public class SysRegisterController extends BaseController
|
||||
|
|
|
@ -34,7 +34,7 @@ import com.mcwl.system.service.ISysUserService;
|
|||
/**
|
||||
* 角色信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/role")
|
||||
|
|
|
@ -35,7 +35,7 @@ import com.mcwl.system.service.ISysUserService;
|
|||
/**
|
||||
* 用户信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/user")
|
||||
|
|
|
@ -25,7 +25,7 @@ import io.swagger.annotations.ApiOperation;
|
|||
/**
|
||||
* swagger 用户测试方法
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Api("用户信息管理")
|
||||
@RestController
|
||||
|
|
|
@ -6,7 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import com.mcwl.common.config.RuoYiConfig;
|
||||
import com.mcwl.common.config.McWlConfig;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.models.auth.In;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
|
@ -25,14 +25,14 @@ import springfox.documentation.spring.web.plugins.Docket;
|
|||
/**
|
||||
* Swagger2的接口配置
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Configuration
|
||||
public class SwaggerConfig
|
||||
{
|
||||
/** 系统基础配置 */
|
||||
@Autowired
|
||||
private RuoYiConfig ruoyiConfig;
|
||||
private McWlConfig mcwlConfig;
|
||||
|
||||
/** 是否开启swagger */
|
||||
@Value("${swagger.enabled}")
|
||||
|
@ -113,13 +113,13 @@ public class SwaggerConfig
|
|||
// 用ApiInfoBuilder进行定制
|
||||
return new ApiInfoBuilder()
|
||||
// 设置标题
|
||||
.title("标题:若依管理系统_接口文档")
|
||||
.title("标题:魔创未来管理系统_接口文档")
|
||||
// 描述
|
||||
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
|
||||
// 作者信息
|
||||
.contact(new Contact(ruoyiConfig.getName(), null, null))
|
||||
.contact(new Contact(mcwlConfig.getName(), null, null))
|
||||
// 版本
|
||||
.version("版本号:" + ruoyiConfig.getVersion())
|
||||
.version("版本号:" + mcwlConfig.getVersion())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ spring:
|
|||
allow:
|
||||
url-pattern: /druid/*
|
||||
# 控制台管理用户名和密码
|
||||
login-username: ruoyi
|
||||
login-username: mcwl
|
||||
login-password: 123456
|
||||
filter:
|
||||
stat:
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# 项目相关配置
|
||||
ruoyi:
|
||||
mcwl:
|
||||
# 名称
|
||||
name: RuoYi
|
||||
name: McWl
|
||||
# 版本
|
||||
version: 3.8.8
|
||||
# 版权年份
|
||||
copyrightYear: 2024
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
# 文件路径 示例( Windows配置D:/mcwl/uploadPath,Linux配置 /home/mcwl/uploadPath)
|
||||
profile: D:/mcwl/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
# 验证码类型 math 数字计算 char 字符验证
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Application Version: ${ruoyi.version}
|
||||
Application Version: ${mcwl.version}
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// _ooOoo_ //
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="/home/ruoyi/logs" />
|
||||
<property name="log.path" value="/home/mcwl/logs" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* 匿名访问不鉴权注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* 数据权限过滤注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.mcwl.common.enums.DataSourceType;
|
|||
*
|
||||
* 优先级:先方法,后类,如果方法覆盖了类上的数据源类型,以方法的为准,否则以类上的为准
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Target({ ElementType.METHOD, ElementType.TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.utils.poi.ExcelHandlerAdapter;
|
|||
/**
|
||||
* 自定义导出Excel数据注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* Excel注解集
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.mcwl.common.enums.OperatorType;
|
|||
/**
|
||||
* 自定义操作日志记录注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*
|
||||
*/
|
||||
@Target({ ElementType.PARAMETER, ElementType.METHOD })
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.mcwl.common.enums.LimitType;
|
|||
/**
|
||||
* 限流注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* 自定义注解防止表单重复提交
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*
|
||||
*/
|
||||
@Inherited
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.enums.DesensitizedType;
|
|||
/**
|
||||
* 数据脱敏注解
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
|
|
|
@ -6,11 +6,11 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* 读取项目相关配置
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "ruoyi")
|
||||
public class RuoYiConfig
|
||||
@ConfigurationProperties(prefix = "mcwl")
|
||||
public class McWlConfig
|
||||
{
|
||||
/** 项目名称 */
|
||||
private String name;
|
||||
|
@ -67,7 +67,7 @@ public class RuoYiConfig
|
|||
|
||||
public void setProfile(String profile)
|
||||
{
|
||||
RuoYiConfig.profile = profile;
|
||||
McWlConfig.profile = profile;
|
||||
}
|
||||
|
||||
public static boolean isAddressEnabled()
|
||||
|
@ -77,7 +77,7 @@ public class RuoYiConfig
|
|||
|
||||
public void setAddressEnabled(boolean addressEnabled)
|
||||
{
|
||||
RuoYiConfig.addressEnabled = addressEnabled;
|
||||
McWlConfig.addressEnabled = addressEnabled;
|
||||
}
|
||||
|
||||
public static String getCaptchaType() {
|
||||
|
@ -85,7 +85,7 @@ public class RuoYiConfig
|
|||
}
|
||||
|
||||
public void setCaptchaType(String captchaType) {
|
||||
RuoYiConfig.captchaType = captchaType;
|
||||
McWlConfig.captchaType = captchaType;
|
||||
}
|
||||
|
||||
/**
|
|
@ -16,7 +16,7 @@ import com.mcwl.common.utils.SecurityUtils;
|
|||
/**
|
||||
* 数据脱敏序列化过滤
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SensitiveJsonSerializer extends JsonSerializer<String> implements ContextualSerializer
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.constant;
|
|||
/**
|
||||
* 缓存的key 常量
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class CacheConstants
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import io.jsonwebtoken.Claims;
|
|||
/**
|
||||
* 通用常量信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class Constants
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.constant;
|
|||
/**
|
||||
* 代码生成通用常量
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class GenConstants
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.constant;
|
|||
/**
|
||||
* 返回状态码
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class HttpStatus
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.constant;
|
|||
/**
|
||||
* 任务调度通用常量
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class ScheduleConstants
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.constant;
|
|||
/**
|
||||
* 用户常量信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UserConstants
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ import com.mcwl.common.utils.sql.SqlUtil;
|
|||
/**
|
||||
* web层通用数据处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class BaseController
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* 操作消息提醒
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class AjaxResult extends HashMap<String, Object>
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|||
/**
|
||||
* Entity基类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class BaseEntity implements Serializable
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.mcwl.common.constant.HttpStatus;
|
|||
/**
|
||||
* 响应信息主体
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class R<T> implements Serializable
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||
/**
|
||||
* Tree基类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class TreeEntity extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* Treeselect树结构实体类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class TreeSelect implements Serializable
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.mcwl.common.core.domain.BaseEntity;
|
|||
/**
|
||||
* 部门表 sys_dept
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysDept extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.core.domain.BaseEntity;
|
|||
/**
|
||||
* 字典数据表 sys_dict_data
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysDictData extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.core.domain.BaseEntity;
|
|||
/**
|
||||
* 字典类型表 sys_dict_type
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysDictType extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import com.mcwl.common.core.domain.BaseEntity;
|
|||
/**
|
||||
* 菜单权限表 sys_menu
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysMenu extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.mcwl.common.core.domain.BaseEntity;
|
|||
/**
|
||||
* 角色表 sys_role
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysRole extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ import com.mcwl.common.xss.Xss;
|
|||
/**
|
||||
* 用户对象 sys_user
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class SysUser extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.core.domain.model;
|
|||
/**
|
||||
* 用户登录对象
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class LoginBody
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Set;
|
|||
/**
|
||||
* 登录用户身份权限
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class LoginUser implements UserDetails
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.core.domain.model;
|
|||
/**
|
||||
* 用户注册对象
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class RegisterBody extends LoginBody
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* 分页数据
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class PageDomain
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||
/**
|
||||
* 表格分页数据对象
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class TableDataInfo implements Serializable
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.mcwl.common.utils.ServletUtils;
|
|||
/**
|
||||
* 表格数据处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class TableSupport
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* spring redis 工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
**/
|
||||
@SuppressWarnings(value = { "unchecked", "rawtypes" })
|
||||
@Component
|
||||
|
|
|
@ -7,7 +7,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* 字符集工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class CharsetKit
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.apache.commons.lang3.ArrayUtils;
|
|||
/**
|
||||
* 类型转换器
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class Convert
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* 字符串格式化
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class StrFormatter
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 操作状态
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*
|
||||
*/
|
||||
public enum BusinessStatus
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 业务操作类型
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum BusinessType
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 数据源
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum DataSourceType
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.mcwl.common.utils.DesensitizedUtil;
|
|||
/**
|
||||
* 脱敏类型
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum DesensitizedType
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ import org.springframework.lang.Nullable;
|
|||
/**
|
||||
* 请求方式
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum HttpMethod
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 限流类型
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
|
||||
public enum LimitType
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 操作人类别
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum OperatorType
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.enums;
|
|||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public enum UserStatus
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception;
|
|||
/**
|
||||
* 演示模式异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class DemoModeException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception;
|
|||
/**
|
||||
* 全局异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class GlobalException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception;
|
|||
/**
|
||||
* 业务异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public final class ServiceException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception;
|
|||
/**
|
||||
* 工具类异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UtilException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* 基础异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class BaseException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.mcwl.common.exception.base.BaseException;
|
|||
/**
|
||||
* 文件信息异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class FileException extends BaseException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.file;
|
|||
/**
|
||||
* 文件名称超长限制异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class FileNameLengthLimitExceededException extends FileException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.file;
|
|||
/**
|
||||
* 文件名大小限制异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class FileSizeLimitExceededException extends FileException
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.io.PrintWriter;
|
|||
/**
|
||||
* 文件上传异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class FileUploadException extends Exception
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.Arrays;
|
|||
/**
|
||||
* 文件上传 误异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class InvalidExtensionException extends FileUploadException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.job;
|
|||
/**
|
||||
* 计划策略异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class TaskException extends Exception
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 黑名单IP异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class BlackListException extends UserException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 验证码错误异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class CaptchaException extends UserException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 验证码失效异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class CaptchaExpireException extends UserException
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.mcwl.common.exception.base.BaseException;
|
|||
/**
|
||||
* 用户信息异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UserException extends BaseException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 用户不存在异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UserNotExistsException extends UserException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 用户密码不正确或不符合规范异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UserPasswordNotMatchException extends UserException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
|
|||
/**
|
||||
* 用户错误最大次数异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class UserPasswordRetryLimitExceedException extends UserException
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
|
|||
/**
|
||||
* 排除JSON敏感属性
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@ import com.mcwl.common.utils.StringUtils;
|
|||
/**
|
||||
* Repeatable 过滤器
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class RepeatableFilter implements Filter
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ import com.mcwl.common.constant.Constants;
|
|||
/**
|
||||
* 构建可重复读取inputStream的request
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.mcwl.common.enums.HttpMethod;
|
|||
/**
|
||||
* 防止XSS攻击的过滤器
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class XssFilter implements Filter
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ import com.mcwl.common.utils.html.EscapeUtil;
|
|||
/**
|
||||
* XSS过滤处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author mcwl
|
||||
*/
|
||||
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue