📄 constants.java
字号:
/*
* Created on 2006-2-16
*/
package com.common;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: epro</p>
* @author tommy.zeng
* @version 1.0
*/
public class Constants {
/** The name of the ResourceBundle used in this application */
public static final String BUNDLE_KEY = "ApplicationResources";
/** The encryption algorithm key to be used for passwords */
public static final String ENC_ALGORITHM = "algorithm";
/** A flag to indicate if passwords should be encrypted */
public static final String ENCRYPT_PASSWORD = "encryptPassword";
/** File separator from System properties */
public static final String FILE_SEP = System.getProperty("file.separator");
/** User home from System properties */
public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;
/** The name of the configuration hashmap stored in application scope. */
public static final String CONFIG = "appConfig";
/**
* Session scope attribute that holds the locale set by the user. By setting this key
* to the same one that Struts uses, we get synchronization in Struts w/o having
* to do extra work or have two session-level variables.
*/
public static final String PREFERRED_LOCALE_KEY = "org.apache.struts.action.LOCALE";
public static final String GLOBAL_SUCCESS = "globalSuccess";
public static final String GLOBAL_WARNING = "globalWarning";
/**
* max file size is 100M
*/
public static final int MAX_FILE_SIZE = 100*1024*1024;//up load file size
public static final String LOGIN_SESSION_USER = "loginUserSession";// put to session attribute
public static String BASEPATH = "";//web system real path
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -