mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 02:08:15 +08:00
fix: 删除不需要的注解配置
This commit is contained in:
parent
3fef2b68dc
commit
cd4ceb350e
@ -30,7 +30,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Api(value = "验证码操作处理", tags = {"验证码管理"})
|
@Api(value = "验证码操作处理", tags = {"验证码管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
public class CaptchaController {
|
public class CaptchaController {
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import com.ruoyi.common.utils.StringUtils;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.data.redis.connection.RedisServerCommands;
|
import org.springframework.data.redis.connection.RedisServerCommands;
|
||||||
import org.springframework.data.redis.core.RedisCallback;
|
import org.springframework.data.redis.core.RedisCallback;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
@ -14,7 +13,11 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 缓存监控
|
* 缓存监控
|
||||||
@ -22,7 +25,7 @@ import java.util.*;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Api(value = "缓存监控", tags = {"缓存监控管理"})
|
@Api(value = "缓存监控", tags = {"缓存监控管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/monitor/cache")
|
@RequestMapping("/monitor/cache")
|
||||||
public class CacheController {
|
public class CacheController {
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "系统访问记录", tags = {"系统访问记录管理"})
|
@Api(value = "系统访问记录", tags = {"系统访问记录管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/monitor/logininfor")
|
@RequestMapping("/monitor/logininfor")
|
||||||
public class SysLogininforController extends BaseController {
|
public class SysLogininforController extends BaseController {
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "操作日志记录", tags = {"操作日志记录管理"})
|
@Api(value = "操作日志记录", tags = {"操作日志记录管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/monitor/operlog")
|
@RequestMapping("/monitor/operlog")
|
||||||
public class SysOperlogController extends BaseController {
|
public class SysOperlogController extends BaseController {
|
||||||
|
|||||||
@ -32,7 +32,7 @@ import java.util.stream.Collectors;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Api(value = "在线用户监控", tags = {"在线用户监控管理"})
|
@Api(value = "在线用户监控", tags = {"在线用户监控管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/monitor/online")
|
@RequestMapping("/monitor/online")
|
||||||
public class SysUserOnlineController extends BaseController {
|
public class SysUserOnlineController extends BaseController {
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "参数配置控制器", tags = {"参数配置管理"})
|
@Api(value = "参数配置控制器", tags = {"参数配置管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/config")
|
@RequestMapping("/system/config")
|
||||||
public class SysConfigController extends BaseController {
|
public class SysConfigController extends BaseController {
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "部门控制器", tags = {"部门管理"})
|
@Api(value = "部门控制器", tags = {"部门管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/dept")
|
@RequestMapping("/system/dept")
|
||||||
public class SysDeptController extends BaseController {
|
public class SysDeptController extends BaseController {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "数据字典信息控制器", tags = {"数据字典信息管理"})
|
@Api(value = "数据字典信息控制器", tags = {"数据字典信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/dict/data")
|
@RequestMapping("/system/dict/data")
|
||||||
public class SysDictDataController extends BaseController {
|
public class SysDictDataController extends BaseController {
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "数据字典信息控制器", tags = {"数据字典信息管理"})
|
@Api(value = "数据字典信息控制器", tags = {"数据字典信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/dict/type")
|
@RequestMapping("/system/dict/type")
|
||||||
public class SysDictTypeController extends BaseController {
|
public class SysDictTypeController extends BaseController {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Api(value = "首页控制器", tags = {"首页管理"})
|
@Api(value = "首页控制器", tags = {"首页管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
public class SysIndexController {
|
public class SysIndexController {
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ import java.util.Set;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "登录验证控制器", tags = {"登录验证管理"})
|
@Api(value = "登录验证控制器", tags = {"登录验证管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
public class SysLoginController {
|
public class SysLoginController {
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "菜单信息控制器", tags = {"菜单信息管理"})
|
@Api(value = "菜单信息控制器", tags = {"菜单信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/menu")
|
@RequestMapping("/system/menu")
|
||||||
public class SysMenuController extends BaseController {
|
public class SysMenuController extends BaseController {
|
||||||
|
|||||||
@ -24,7 +24,7 @@ import lombok.RequiredArgsConstructor;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "公告信息控制器", tags = {"公告信息管理"})
|
@Api(value = "公告信息控制器", tags = {"公告信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/notice")
|
@RequestMapping("/system/notice")
|
||||||
public class SysNoticeController extends BaseController {
|
public class SysNoticeController extends BaseController {
|
||||||
|
|||||||
@ -35,7 +35,7 @@ import java.util.Arrays;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "对象存储配置控制器", tags = {"对象存储配置管理"})
|
@Api(value = "对象存储配置控制器", tags = {"对象存储配置管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/oss/config")
|
@RequestMapping("/system/oss/config")
|
||||||
public class SysOssConfigController extends BaseController {
|
public class SysOssConfigController extends BaseController {
|
||||||
|
|||||||
@ -47,7 +47,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "OSS对象存储控制器", tags = {"OSS对象存储管理"})
|
@Api(value = "OSS对象存储控制器", tags = {"OSS对象存储管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/oss")
|
@RequestMapping("/system/oss")
|
||||||
public class SysOssController extends BaseController {
|
public class SysOssController extends BaseController {
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "岗位信息控制器", tags = {"岗位信息管理"})
|
@Api(value = "岗位信息控制器", tags = {"岗位信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/post")
|
@RequestMapping("/system/post")
|
||||||
public class SysPostController extends BaseController {
|
public class SysPostController extends BaseController {
|
||||||
|
|||||||
@ -35,7 +35,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "个人信息控制器", tags = {"个人信息管理"})
|
@Api(value = "个人信息控制器", tags = {"个人信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/user/profile")
|
@RequestMapping("/system/user/profile")
|
||||||
public class SysProfileController extends BaseController {
|
public class SysProfileController extends BaseController {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "注册验证控制器", tags = {"注册验证管理"})
|
@Api(value = "注册验证控制器", tags = {"注册验证管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
public class SysRegisterController extends BaseController {
|
public class SysRegisterController extends BaseController {
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "角色信息控制器", tags = {"角色信息管理"})
|
@Api(value = "角色信息控制器", tags = {"角色信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/role")
|
@RequestMapping("/system/role")
|
||||||
public class SysRoleController extends BaseController {
|
public class SysRoleController extends BaseController {
|
||||||
|
|||||||
@ -45,7 +45,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "用户信息控制器", tags = {"用户信息管理"})
|
@Api(value = "用户信息控制器", tags = {"用户信息管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/user")
|
@RequestMapping("/system/user")
|
||||||
public class SysUserController extends BaseController {
|
public class SysUserController extends BaseController {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ public class UnsignedMathGenerator implements CodeGenerator {
|
|||||||
|
|
||||||
private static final long serialVersionUID = -5514819971774091076L;
|
private static final long serialVersionUID = -5514819971774091076L;
|
||||||
|
|
||||||
private static final String operators = "+-*";
|
private static final String OPERATORS = "+-*";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参与计算数字最大长度
|
* 参与计算数字最大长度
|
||||||
@ -48,7 +48,7 @@ public class UnsignedMathGenerator implements CodeGenerator {
|
|||||||
number1 = StringUtils.rightPad(number1, this.numberLength, CharUtil.SPACE);
|
number1 = StringUtils.rightPad(number1, this.numberLength, CharUtil.SPACE);
|
||||||
number2 = StringUtils.rightPad(number2, this.numberLength, CharUtil.SPACE);
|
number2 = StringUtils.rightPad(number2, this.numberLength, CharUtil.SPACE);
|
||||||
|
|
||||||
return number1 + RandomUtil.randomChar(operators) + number2 + '=';
|
return number1 + RandomUtil.randomChar(OPERATORS) + number2 + '=';
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -6,6 +6,8 @@ import com.ruoyi.common.core.domain.model.LoginUser;
|
|||||||
import com.ruoyi.common.enums.DeviceType;
|
import com.ruoyi.common.enums.DeviceType;
|
||||||
import com.ruoyi.common.enums.UserType;
|
import com.ruoyi.common.enums.UserType;
|
||||||
import com.ruoyi.common.exception.UtilException;
|
import com.ruoyi.common.exception.UtilException;
|
||||||
|
import lombok.AccessLevel;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录鉴权工具
|
* 登录鉴权工具
|
||||||
@ -13,9 +15,10 @@ import com.ruoyi.common.exception.UtilException;
|
|||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
|
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class LoginUtils {
|
public class LoginUtils {
|
||||||
|
|
||||||
private final static String LOGIN_USER_KEY = "loginUser";
|
private static final String LOGIN_USER_KEY = "loginUser";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录系统
|
* 登录系统
|
||||||
|
|||||||
@ -16,7 +16,7 @@ public class SqlUtil {
|
|||||||
/**
|
/**
|
||||||
* 定义常用的 sql关键字
|
* 定义常用的 sql关键字
|
||||||
*/
|
*/
|
||||||
public static String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare ";
|
public static final String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare ";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序)
|
* 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序)
|
||||||
|
|||||||
@ -23,7 +23,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
// 类级别 缓存统一配置
|
// 类级别 缓存统一配置
|
||||||
//@CacheConfig(cacheNames = "redissonCacheMap")
|
//@CacheConfig(cacheNames = "redissonCacheMap")
|
||||||
@Api(value = "spring-cache 演示案例", tags = {"spring-cache 演示案例"})
|
@Api(value = "spring-cache 演示案例", tags = {"spring-cache 演示案例"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/cache")
|
@RequestMapping("/demo/cache")
|
||||||
public class RedisCacheController {
|
public class RedisCacheController {
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -17,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Api(value = "Redis发布订阅 演示案例", tags = {"Redis发布订阅"})
|
@Api(value = "Redis发布订阅 演示案例", tags = {"Redis发布订阅"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/redis/pubsub")
|
@RequestMapping("/demo/redis/pubsub")
|
||||||
public class RedisPubSubController {
|
public class RedisPubSubController {
|
||||||
|
|||||||
@ -24,7 +24,7 @@ import java.util.List;
|
|||||||
* @date 2021-05-30
|
* @date 2021-05-30
|
||||||
*/
|
*/
|
||||||
@Api(value = "测试批量方法", tags = {"测试批量方法"})
|
@Api(value = "测试批量方法", tags = {"测试批量方法"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/batch")
|
@RequestMapping("/demo/batch")
|
||||||
public class TestBatchController extends BaseController {
|
public class TestBatchController extends BaseController {
|
||||||
|
|||||||
@ -42,7 +42,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "测试单表控制器", tags = {"测试单表管理"})
|
@Api(value = "测试单表控制器", tags = {"测试单表管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/demo")
|
@RequestMapping("/demo/demo")
|
||||||
public class TestDemoController extends BaseController {
|
public class TestDemoController extends BaseController {
|
||||||
|
|||||||
@ -17,9 +17,15 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
@ -35,7 +41,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "测试树表控制器", tags = {"测试树表管理"})
|
@Api(value = "测试树表控制器", tags = {"测试树表管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/tree")
|
@RequestMapping("/demo/tree")
|
||||||
public class TestTreeController extends BaseController {
|
public class TestTreeController extends BaseController {
|
||||||
|
|||||||
@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Api(value = "有界队列 演示案例", tags = {"有界队列"})
|
@Api(value = "有界队列 演示案例", tags = {"有界队列"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/queue/bounded")
|
@RequestMapping("/demo/queue/bounded")
|
||||||
public class BoundedQueueController {
|
public class BoundedQueueController {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Api(value = "延迟队列 演示案例", tags = {"延迟队列"})
|
@Api(value = "延迟队列 演示案例", tags = {"延迟队列"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/queue/delayed")
|
@RequestMapping("/demo/queue/delayed")
|
||||||
public class DelayedQueueController {
|
public class DelayedQueueController {
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Api(value = "优先队列 演示案例", tags = {"优先队列"})
|
@Api(value = "优先队列 演示案例", tags = {"优先队列"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demo/queue/priority")
|
@RequestMapping("/demo/queue/priority")
|
||||||
public class PriorityQueueController {
|
public class PriorityQueueController {
|
||||||
|
|||||||
@ -6,16 +6,15 @@ import com.ruoyi.common.annotation.RepeatSubmit;
|
|||||||
import com.ruoyi.common.constant.Constants;
|
import com.ruoyi.common.constant.Constants;
|
||||||
import com.ruoyi.common.exception.ServiceException;
|
import com.ruoyi.common.exception.ServiceException;
|
||||||
import com.ruoyi.common.utils.JsonUtils;
|
import com.ruoyi.common.utils.JsonUtils;
|
||||||
import com.ruoyi.common.utils.redis.RedisUtils;
|
|
||||||
import com.ruoyi.common.utils.ServletUtils;
|
import com.ruoyi.common.utils.ServletUtils;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
|
import com.ruoyi.common.utils.redis.RedisUtils;
|
||||||
import com.ruoyi.framework.config.properties.RepeatSubmitProperties;
|
import com.ruoyi.framework.config.properties.RepeatSubmitProperties;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.aspectj.lang.JoinPoint;
|
import org.aspectj.lang.JoinPoint;
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
import org.aspectj.lang.annotation.Before;
|
import org.aspectj.lang.annotation.Before;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.validation.BindingResult;
|
import org.springframework.validation.BindingResult;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
@ -32,7 +31,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@Aspect
|
@Aspect
|
||||||
@Component
|
@Component
|
||||||
public class RepeatSubmitAspect {
|
public class RepeatSubmitAspect {
|
||||||
|
|||||||
@ -16,9 +16,15 @@ import com.ruoyi.generator.service.IGenTableService;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -33,7 +39,7 @@ import java.util.Map;
|
|||||||
*/
|
*/
|
||||||
@Validated
|
@Validated
|
||||||
@Api(value = "代码生成", tags = {"代码生成管理"})
|
@Api(value = "代码生成", tags = {"代码生成管理"})
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/tool/gen")
|
@RequestMapping("/tool/gen")
|
||||||
public class GenController extends BaseController {
|
public class GenController extends BaseController {
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import com.ruoyi.system.service.ISysDictTypeService;
|
|||||||
import com.ruoyi.system.service.ISysOssConfigService;
|
import com.ruoyi.system.service.ISysOssConfigService;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.boot.ApplicationArguments;
|
import org.springframework.boot.ApplicationArguments;
|
||||||
import org.springframework.boot.ApplicationRunner;
|
import org.springframework.boot.ApplicationRunner;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@ -17,7 +16,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
@RequiredArgsConstructor
|
||||||
@Component
|
@Component
|
||||||
public class SystemApplicationRunner implements ApplicationRunner {
|
public class SystemApplicationRunner implements ApplicationRunner {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user