Commit 6384027d by jiang'yun

修改

parent 75ecc39d
......@@ -7,7 +7,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 启动程序
*
* @author ruoyi
* @author
*/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
......
......@@ -6,7 +6,7 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
/**
* web容器中进行部署
*
* @author ruoyi
* @author
*/
public class RuoYiServletInitializer extends SpringBootServletInitializer
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.constant;
/**
* 缓存的key 常量
*
* @author ruoyi
* @author
*/
public class CacheConstants
{
......
......@@ -6,7 +6,7 @@ import io.jsonwebtoken.Claims;
/**
* 通用常量信息
*
* @author ruoyi
* @author
*/
public class Constants
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.constant;
/**
* 代码生成通用常量
*
* @author ruoyi
* @author
*/
public class GenConstants
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.constant;
/**
* 返回状态码
*
* @author ruoyi
* @author
*/
public class HttpStatus
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.constant;
/**
* 任务调度通用常量
*
* @author ruoyi
* @author
*/
public class ScheduleConstants
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.constant;
/**
* 用户常量信息
*
* @author ruoyi
* @author
*/
public class UserConstants
{
......
......@@ -7,7 +7,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* 字符集工具类
*
* @author ruoyi
* @author
*/
public class CharsetKit
{
......
......@@ -13,7 +13,7 @@ import org.apache.commons.lang3.ArrayUtils;
/**
* 类型转换器
*
* @author ruoyi
* @author
*/
public class Convert
{
......
......@@ -5,7 +5,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* 字符串格式化
*
* @author ruoyi
* @author
*/
public class StrFormatter
{
......
......@@ -7,7 +7,7 @@ import org.springframework.lang.Nullable;
/**
* 请求方式
*
* @author ruoyi
* @author
*/
public enum HttpMethod
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.enums;
/**
* 用户状态
*
* @author ruoyi
* @author
*/
public enum UserStatus
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception;
/**
* 演示模式异常
*
* @author ruoyi
* @author
*/
public class DemoModeException extends RuntimeException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception;
/**
* 全局异常
*
* @author ruoyi
* @author
*/
public class GlobalException extends RuntimeException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception;
/**
* 业务异常
*
* @author ruoyi
* @author
*/
public final class ServiceException extends RuntimeException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception;
/**
* 工具类异常
*
* @author ruoyi
* @author
*/
public class UtilException extends RuntimeException
{
......
......@@ -6,7 +6,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* 基础异常
*
* @author ruoyi
* @author
*/
public class BaseException extends RuntimeException
{
......
......@@ -5,7 +5,7 @@ import com.zjsgfa.common.exception.base.BaseException;
/**
* 文件信息异常类
*
* @author ruoyi
* @author
*/
public class FileException extends BaseException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.file;
/**
* 文件名称超长限制异常类
*
* @author ruoyi
* @author
*/
public class FileNameLengthLimitExceededException extends FileException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.file;
/**
* 文件名大小限制异常类
*
* @author ruoyi
* @author
*/
public class FileSizeLimitExceededException extends FileException
{
......
......@@ -6,7 +6,7 @@ import java.io.PrintWriter;
/**
* 文件上传异常类
*
* @author ruoyi
* @author
*/
public class FileUploadException extends Exception
{
......
......@@ -5,7 +5,7 @@ import java.util.Arrays;
/**
* 文件上传 误异常类
*
* @author ruoyi
* @author
*/
public class InvalidExtensionException extends FileUploadException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.job;
/**
* 计划策略异常
*
* @author ruoyi
* @author
*/
public class TaskException extends Exception
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 黑名单IP异常类
*
* @author ruoyi
* @author
*/
public class BlackListException extends UserException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 验证码错误异常类
*
* @author ruoyi
* @author
*/
public class CaptchaException extends UserException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 验证码失效异常类
*
* @author ruoyi
* @author
*/
public class CaptchaExpireException extends UserException
{
......
......@@ -5,7 +5,7 @@ import com.zjsgfa.common.exception.base.BaseException;
/**
* 用户信息异常类
*
* @author ruoyi
* @author
*/
public class UserException extends BaseException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 用户不存在异常类
*
* @author ruoyi
* @author
*/
public class UserNotExistsException extends UserException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 用户密码不正确或不符合规范异常类
*
* @author ruoyi
* @author
*/
public class UserPasswordNotMatchException extends UserException
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.exception.user;
/**
* 用户错误最大次数异常类
*
* @author ruoyi
* @author
*/
public class UserPasswordRetryLimitExceedException extends UserException
{
......
......@@ -5,7 +5,7 @@ import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
/**
* 排除JSON敏感属性
*
* @author ruoyi
* @author
*/
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
{
......
......@@ -14,7 +14,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* Repeatable 过滤器
*
* @author ruoyi
* @author
*/
public class RepeatableFilter implements Filter
{
......
......@@ -15,7 +15,7 @@ import com.zjsgfa.common.constant.Constants;
/**
* 构建可重复读取inputStream的request
*
* @author ruoyi
* @author
*/
public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
{
......
......@@ -17,7 +17,7 @@ import com.zjsgfa.common.enums.HttpMethod;
/**
* 防止XSS攻击的过滤器
*
* @author ruoyi
* @author
*/
public class XssFilter implements Filter
{
......
......@@ -15,7 +15,7 @@ import com.zjsgfa.common.utils.html.EscapeUtil;
/**
* XSS过滤处理
*
* @author ruoyi
* @author
*/
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
{
......
......@@ -6,7 +6,7 @@ import java.math.RoundingMode;
/**
* 精确的浮点数运算
*
* @author ruoyi
* @author
*/
public class Arith
{
......
......@@ -14,7 +14,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
/**
* 时间工具类
*
* @author ruoyi
* @author
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.utils;
/**
* 脱敏工具类
*
* @author ruoyi
* @author
*/
public class DesensitizedUtil
{
......
......@@ -11,7 +11,7 @@ import com.zjsgfa.project.system.domain.SysDictData;
/**
* 字典工具类
*
* @author ruoyi
* @author
*/
public class DictUtils
{
......
......@@ -7,7 +7,7 @@ import org.apache.commons.lang3.exception.ExceptionUtils;
/**
* 错误信息处理类。
*
* @author ruoyi
* @author
*/
public class ExceptionUtil
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.utils;
/**
* 处理并记录日志文件
*
* @author ruoyi
* @author
*/
public class LogUtils
{
......
......@@ -7,7 +7,7 @@ import com.zjsgfa.common.utils.spring.SpringUtils;
/**
* 获取i18n资源文件
*
* @author ruoyi
* @author
*/
public class MessageUtils
{
......
......@@ -8,7 +8,7 @@ import com.zjsgfa.framework.web.page.TableSupport;
/**
* 分页工具类
*
* @author ruoyi
* @author
*/
public class PageUtils extends PageHelper
{
......
......@@ -16,7 +16,7 @@ import com.zjsgfa.project.system.domain.SysRole;
/**
* 安全服务工具类
*
* @author ruoyi
* @author
*/
public class SecurityUtils
{
......
......@@ -20,7 +20,7 @@ import com.zjsgfa.common.core.text.Convert;
/**
* 客户端工具类
*
* @author ruoyi
* @author
*/
public class ServletUtils
{
......
......@@ -13,7 +13,7 @@ import com.zjsgfa.common.core.text.StrFormatter;
/**
* 字符串工具类
*
* @author ruoyi
* @author
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils
{
......
......@@ -11,7 +11,7 @@ import org.slf4j.LoggerFactory;
/**
* 线程相关工具类.
*
* @author ruoyi
* @author
*/
public class Threads
{
......
......@@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* Bean 工具类
*
* @author ruoyi
* @author
*/
public class BeanUtils extends org.springframework.beans.BeanUtils
{
......
......@@ -8,7 +8,7 @@ import javax.validation.Validator;
/**
* bean对象属性验证
*
* @author ruoyi
* @author
*/
public class BeanValidators
{
......
......@@ -6,7 +6,7 @@ import org.apache.commons.lang3.StringUtils;
/**
* 文件类型工具类
*
* @author ruoyi
* @author
*/
public class FileTypeUtils
{
......
......@@ -19,7 +19,7 @@ import com.zjsgfa.framework.config.RuoYiConfig;
/**
* 文件上传工具类
*
* @author ruoyi
* @author
*/
public class FileUploadUtils
{
......
......@@ -23,7 +23,7 @@ import com.zjsgfa.framework.config.RuoYiConfig;
/**
* 文件处理工具类
*
* @author ruoyi
* @author
*/
public class FileUtils
{
......
......@@ -16,7 +16,7 @@ import com.zjsgfa.framework.config.RuoYiConfig;
/**
* 图片处理工具类
*
* @author ruoyi
* @author
*/
public class ImageUtils
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.utils.file;
/**
* 媒体类型工具类
*
* @author ruoyi
* @author
*/
public class MimeTypeUtils
{
......
......@@ -5,7 +5,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* 转义和反转义工具类
*
* @author ruoyi
* @author
*/
public class EscapeUtil
{
......
......@@ -13,7 +13,7 @@ import java.util.regex.Pattern;
/**
* HTML过滤器,用于去除XSS漏洞隐患。
*
* @author ruoyi
* @author
*/
public final class HTMLFilter
{
......
......@@ -13,7 +13,7 @@ import org.slf4j.LoggerFactory;
/**
* 通用http工具封装
*
* @author ruoyi
* @author
*/
public class HttpHelper
{
......
......@@ -26,7 +26,7 @@ import org.springframework.http.MediaType;
/**
* 通用http发送方法
*
* @author ruoyi
* @author
*/
public class HttpUtils
{
......
......@@ -12,7 +12,7 @@ import com.zjsgfa.framework.config.RuoYiConfig;
/**
* 获取地址类
*
* @author ruoyi
* @author
*/
public class AddressUtils
{
......
......@@ -9,7 +9,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* 获取IP方法
*
* @author ruoyi
* @author
*/
public class IpUtils
{
......
......@@ -18,7 +18,7 @@ import com.zjsgfa.project.monitor.service.ISysJobLogService;
/**
* 抽象quartz调用
*
* @author ruoyi
* @author
*/
public abstract class AbstractQuartzJob implements Job
{
......
......@@ -7,7 +7,7 @@ import org.quartz.CronExpression;
/**
* cron表达式工具类
*
* @author ruoyi
* @author
*
*/
public class CronUtils
......
......@@ -11,7 +11,7 @@ import com.zjsgfa.project.monitor.domain.SysJob;
/**
* 任务执行工具
*
* @author ruoyi
* @author
*/
public class JobInvokeUtil
{
......
......@@ -7,7 +7,7 @@ import com.zjsgfa.project.monitor.domain.SysJob;
/**
* 定时任务处理(禁止并发执行)
*
* @author ruoyi
* @author
*
*/
@DisallowConcurrentExecution
......
......@@ -6,7 +6,7 @@ import com.zjsgfa.project.monitor.domain.SysJob;
/**
* 定时任务处理(允许并发执行)
*
* @author ruoyi
* @author
*
*/
public class QuartzJobExecution extends AbstractQuartzJob
......
......@@ -21,7 +21,7 @@ import com.zjsgfa.project.monitor.domain.SysJob;
/**
* 定时任务工具类
*
* @author ruoyi
* @author
*
*/
public class ScheduleUtils
......
......@@ -6,7 +6,7 @@ import org.apache.poi.ss.usermodel.Workbook;
/**
* Excel数据格式处理适配器
*
* @author ruoyi
* @author
*/
public interface ExcelHandlerAdapter
{
......
......@@ -89,7 +89,7 @@ import com.zjsgfa.framework.web.domain.AjaxResult;
/**
* Excel相关处理
*
* @author ruoyi
* @author
*/
public class ExcelUtil<T>
{
......
......@@ -18,7 +18,7 @@ import com.zjsgfa.common.utils.DateUtils;
/**
* 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数.
*
* @author ruoyi
* @author
*/
@SuppressWarnings("rawtypes")
public class ReflectUtils
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.utils.sign;
/**
* Base64工具类
*
* @author ruoyi
* @author
*/
public final class Base64
{
......
......@@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory;
/**
* Md5加密方法
*
* @author ruoyi
* @author
*/
public class Md5Utils
{
......
......@@ -14,7 +14,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* spring工具类 方便在非spring管理环境中获取bean
*
* @author ruoyi
* @author
*/
@Component
public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware
......
......@@ -6,7 +6,7 @@ import com.zjsgfa.common.utils.StringUtils;
/**
* sql操作工具类
*
* @author ruoyi
* @author
*/
public class SqlUtil
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.common.utils.uuid;
/**
* ID生成器工具类
*
* @author ruoyi
* @author
*/
public class IdUtils
{
......
......@@ -5,7 +5,7 @@ import com.zjsgfa.common.utils.DateUtils;
import com.zjsgfa.common.utils.StringUtils;
/**
* @author ruoyi 序列生成类
* @author 序列生成类
*/
public class Seq
{
......
......@@ -10,7 +10,7 @@ import com.zjsgfa.common.exception.UtilException;
/**
* 提供通用唯一识别码(universally unique identifier)(UUID)实现
*
* @author ruoyi
* @author
*/
public final class UUID implements java.io.Serializable, Comparable<UUID>
{
......
......@@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/**
* 自定义xss校验注解
*
* @author ruoyi
* @author
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
......
......@@ -9,7 +9,7 @@ import java.util.regex.Pattern;
/**
* 自定义xss校验注解实现
*
* @author ruoyi
* @author
*/
public class XssValidator implements ConstraintValidator<Xss, String>
{
......
......@@ -20,7 +20,7 @@ import com.zjsgfa.project.system.domain.SysUser;
/**
* 数据过滤处理
*
* @author ruoyi
* @author
*/
@Aspect
@Component
......
......@@ -18,7 +18,7 @@ import com.zjsgfa.framework.datasource.DynamicDataSourceContextHolder;
/**
* 多数据源处理
*
* @author ruoyi
* @author
*/
@Aspect
@Order(1)
......
......@@ -36,7 +36,7 @@ import com.zjsgfa.project.system.domain.SysUser;
/**
* 操作日志记录处理
*
* @author ruoyi
* @author
*/
@Aspect
@Component
......
......@@ -22,7 +22,7 @@ import com.zjsgfa.framework.aspectj.lang.enums.LimitType;
/**
* 限流处理
*
* @author ruoyi
* @author
*/
@Aspect
@Component
......
......@@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/**
* 匿名访问不鉴权注解
*
* @author ruoyi
* @author
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/**
* 数据权限过滤注解
*
* @author ruoyi
* @author
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -13,7 +13,7 @@ import com.zjsgfa.framework.aspectj.lang.enums.DataSourceType;
*
* 优先级:先方法,后类,如果方法覆盖了类上的数据源类型,以方法的为准,否则以类上的为准
*
* @author ruoyi
* @author
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -12,7 +12,7 @@ import com.zjsgfa.common.utils.poi.ExcelHandlerAdapter;
/**
* 自定义导出Excel数据注解
*
* @author ruoyi
* @author
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
......
......@@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/**
* Excel注解集
*
* @author ruoyi
* @author
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -11,7 +11,7 @@ import com.zjsgfa.framework.aspectj.lang.enums.OperatorType;
/**
* 自定义操作日志记录注解
*
* @author ruoyi
* @author
*
*/
@Target({ ElementType.PARAMETER, ElementType.METHOD })
......
......@@ -11,7 +11,7 @@ import com.zjsgfa.framework.aspectj.lang.enums.LimitType;
/**
* 限流注解
*
* @author ruoyi
* @author
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
......
......@@ -12,7 +12,7 @@ import com.zjsgfa.framework.config.SensitiveJsonSerializer;
/**
* 数据脱敏注解
*
* @author ruoyi
* @author
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.framework.aspectj.lang.enums;
/**
* 操作状态
*
* @author ruoyi
* @author
*
*/
public enum BusinessStatus
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.framework.aspectj.lang.enums;
/**
* 业务操作类型
*
* @author ruoyi
* @author
*/
public enum BusinessType
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.framework.aspectj.lang.enums;
/**
* 数据源
*
* @author ruoyi
* @author
*/
public enum DataSourceType
{
......
......@@ -6,7 +6,7 @@ import com.zjsgfa.common.utils.DesensitizedUtil;
/**
* 脱敏类型
*
* @author ruoyi
* @author
*/
public enum DesensitizedType
{
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.framework.aspectj.lang.enums;
/**
* 限流类型
*
* @author ruoyi
* @author
*/
public enum LimitType
......
......@@ -3,7 +3,7 @@ package com.zjsgfa.framework.aspectj.lang.enums;
/**
* 操作人类别
*
* @author ruoyi
* @author
*/
public enum OperatorType
{
......
......@@ -10,7 +10,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
/**
* 程序注解配置
*
* @author ruoyi
* @author
*/
@Configuration
// 表示通过aop框架暴露该代理对象,AopContext能够访问
......
......@@ -10,7 +10,7 @@ import static com.google.code.kaptcha.Constants.*;
/**
* 验证码配置
*
* @author ruoyi
* @author
*/
@Configuration
public class CaptchaConfig
......
......@@ -27,7 +27,7 @@ import com.zjsgfa.framework.datasource.DynamicDataSource;
/**
* druid 配置多数据源
*
* @author ruoyi
* @author
*/
@Configuration
public class DruidConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment