类 CommonParams
java.lang.Object
com.weicoder.common.params.CommonParams
Common包参数读取类
- 作者:
- WD
-
字段概要
字段修饰符和类型字段说明static final String转换字节数组算法static final String[]ClassUtil 排除Bean名称尾缀static final String日期格式static final String默认编码static final String加密使用的算法static final String加密使用摘要算法static final String加密使用的密钥 字符串static final inthttp连接超时时间static final inthttp读取超时时间static final intIO缓冲区大小static final StringIO模式static final String[]获得ips过滤组static final Stringlog实现static final int截取日志长度static final boolean是否驻留程序static final Stringstatic final int分页每页大小 默认20static final inttoken 有效期static final Stringtoken 验证KEYstatic final inttoken 验证长度token 发放服务器static final shorttoken 标记static final char[]验证码出现的字符集static final int验证码长度 -
方法概要
修饰符和类型方法说明static booleangetExecutorDaemon(String name) 获得线程是否守护线程static intgetExecutorPool(String name) 获得线程池static StringgetPackages(String name) 获得包名static booleangetScheduledDaemon(String name) 获得定时任务池是否守护线程static intgetScheduledPool(String name) 获得定时任务池static boolean获得初始化开关
-
字段详细资料
-
LOG_CLASS
log实现 -
IO_BUFFERSIZE
public static final int IO_BUFFERSIZEIO缓冲区大小 -
IO_MODE
IO模式 -
ENCODING
默认编码 -
DATE_FORMAT
日期格式 -
BYTES
转换字节数组算法 -
ENCRYPT_KEY
加密使用的密钥 字符串 -
ENCRYPT_ALGO
加密使用的算法 -
ENCRYPT_DIGEST
加密使用摘要算法 -
IPS
获得ips过滤组 -
TOKEN_KEY
token 验证KEY -
TOKEN_LENGHT
public static final int TOKEN_LENGHTtoken 验证长度 -
TOKEN_SIGN
public static final short TOKEN_SIGNtoken 标记 -
TOKEN_EXPIRE
public static final int TOKEN_EXPIREtoken 有效期 -
LOGS_LEN
public static final int LOGS_LEN截取日志长度 -
TOKEN_SERVERS
token 发放服务器 -
HTTP_CONNECT_TIMEOUT
public static final int HTTP_CONNECT_TIMEOUThttp连接超时时间 -
HTTP_READ_TIMEOUT
public static final int HTTP_READ_TIMEOUThttp读取超时时间 -
PAGE_SIZE
public static final int PAGE_SIZE分页每页大小 默认20 -
VERIFY_CODE
public static final char[] VERIFY_CODE验证码出现的字符集 -
VERIFY_LENGTH
public static final int VERIFY_LENGTH验证码长度 -
MAIN
public static final boolean MAIN是否驻留程序 -
PACKAGES
-
CLASS_NAMES
ClassUtil 排除Bean名称尾缀
-
-
方法详细资料
-
power
获得初始化开关- 参数:
name- 初始化的模块- 返回:
- true 初始化 false 不执行
-
getPackages
获得包名- 参数:
name- 名称- 返回:
- 名称下的包名
-
getScheduledPool
获得定时任务池- 参数:
name- 名称- 返回:
- 数量
-
getScheduledDaemon
获得定时任务池是否守护线程- 参数:
name- 名称- 返回:
- 数量
-
getExecutorPool
获得线程池- 参数:
name- 名称- 返回:
- 数量
-
getExecutorDaemon
获得线程是否守护线程- 参数:
name- 名称- 返回:
- 数量
-