public class Global extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
bbs_commentTextMaxLength |
static int |
bbs_commentTextMinLength |
static boolean |
bbs_readPost_addLog |
static int |
bbs_textMinLength |
static int |
bbs_titleMaxLength |
static int |
bbs_titleMinLength
论坛相关
|
static String |
CACHE_FILE
文件目录相关,会在当前项目的根目录下的文件夹
|
static int |
DEFAULT_BBS_CREATEPOST_CLASSID |
static Map<String,Map<String,String>> |
language
language.get("chinese").get("collect_notCollectOneself")
|
static String |
language_default
用户可自由切换当前语言,此处为语言库配置,使用哪种。
|
static int |
MESSAGE_CONTENT_MAXLENGTH |
static int |
MESSAGE_CONTENT_MINLENGTH |
static boolean |
MESSAGE_USED
站内信
|
static String |
ossFileUploadImageSuffixList
文件上传
|
static int |
PAGE_ADMIN_DEFAULT_EVERYNUMBER |
static int |
PAGE_DEFAULT_EVERYNUMBER |
static int |
POST_INFO_AUTOCAT_MAX |
static String |
projectPath
动态参数,会在项目启动时加载
|
static int |
PROMPT_STATE_ERROR |
static int |
PROMPT_STATE_SUCCESS |
static Map<String,String> |
system
system表的参数,name-value
|
static String |
USER_HEAD_FILE
文件目录相关,用户头像存在于当前项目的根目录下的文件夹
|
static int |
USER_PASSWORD_SALT_NUMBER
固定参数
|
| 构造器和说明 |
|---|
Global() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
get(String systemName)
返回 system 表的值
|
static String |
getLanguage(String key)
获取语言包language.xml中的描述文字。
|
static String |
getProjectPath() |
static void |
main(String[] args) |
public static String language_default
public static Map<String,Map<String,String>> language
public static boolean MESSAGE_USED
public static int MESSAGE_CONTENT_MINLENGTH
public static int MESSAGE_CONTENT_MAXLENGTH
public static String projectPath
public static final int USER_PASSWORD_SALT_NUMBER
public static final int PROMPT_STATE_SUCCESS
public static final int PROMPT_STATE_ERROR
public static final int PAGE_DEFAULT_EVERYNUMBER
public static final int PAGE_ADMIN_DEFAULT_EVERYNUMBER
public static int bbs_titleMinLength
public static int bbs_titleMaxLength
public static int bbs_textMinLength
public static boolean bbs_readPost_addLog
public static int bbs_commentTextMinLength
public static int bbs_commentTextMaxLength
public static int DEFAULT_BBS_CREATEPOST_CLASSID
public static int POST_INFO_AUTOCAT_MAX
public static String ossFileUploadImageSuffixList