Files
RuoYi/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java

115 lines
2.4 KiB
Java
Raw Normal View History

2018-07-09 08:44:52 +08:00
package com.ruoyi.common.constant;
/**
* 通用常量信息
*
* @author ruoyi
*/
public class Constants
{
/**
* UTF-8 字符集
*/
public static final String UTF8 = "UTF-8";
/**
* GBK 字符集
*/
public static final String GBK = "GBK";
2021-07-28 16:37:56 +08:00
/**
* http请求
*/
public static final String HTTP = "http://";
/**
* https请求
*/
public static final String HTTPS = "https://";
2018-07-09 08:44:52 +08:00
/**
* 通用成功标识
*/
public static final String SUCCESS = "0";
/**
* 通用失败标识
*/
public static final String FAIL = "1";
/**
* 登录成功
*/
public static final String LOGIN_SUCCESS = "Success";
/**
* 注销
*/
public static final String LOGOUT = "Logout";
2020-03-23 09:02:04 +08:00
/**
* 注册
*/
public static final String REGISTER = "Register";
2018-07-09 08:44:52 +08:00
/**
* 登录失败
*/
public static final String LOGIN_FAIL = "Error";
2020-11-23 10:18:58 +08:00
/**
* 系统用户授权缓存
*/
public static final String SYS_AUTH_CACHE = "sys-authCache";
2019-08-23 10:36:03 +08:00
2020-03-18 12:28:36 +08:00
/**
* 参数管理 cache name
*/
public static final String SYS_CONFIG_CACHE = "sys-config";
/**
* 参数管理 cache key
*/
public static final String SYS_CONFIG_KEY = "sys_config:";
2020-03-18 15:03:52 +08:00
/**
* 字典管理 cache name
*/
public static final String SYS_DICT_CACHE = "sys-dict";
/**
* 字典管理 cache key
*/
public static final String SYS_DICT_KEY = "sys_dict:";
2019-08-23 10:36:03 +08:00
/**
* 资源映射路径 前缀
*/
public static final String RESOURCE_PREFIX = "/profile";
2021-06-15 09:22:55 +08:00
/**
* RMI 远程方法调用
*/
public static final String LOOKUP_RMI = "rmi:";
2021-08-19 12:26:14 +08:00
/**
* LDAP 远程方法调用
*/
public static final String LOOKUP_LDAP = "ldap:";
2021-10-30 10:27:07 +08:00
/**
* LDAPS 远程方法调用
*/
public static final String LOOKUP_LDAPS = "ldaps:";
/**
* 定时任务白名单配置仅允许访问的包名如其他需要可以自行添加
*/
public static final String[] JOB_WHITELIST_STR = { "com.ruoyi" };
2021-10-30 10:27:07 +08:00
/**
* 定时任务违规的字符
*/
public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
"org.springframework", "org.apache" };
2021-10-30 10:27:07 +08:00
}