优化方法名称
This commit is contained in:
parent
8d81df1ad6
commit
ff96f647e6
@ -72,8 +72,9 @@ public class HashMapCache implements ServletContextListener {
|
|||||||
public static HashMapCache getInstance() {
|
public static HashMapCache getInstance() {
|
||||||
return hashMapCache;
|
return hashMapCache;
|
||||||
}
|
}
|
||||||
// 读取
|
|
||||||
public String getCodeMessage(String category, String code) {
|
// 读取描述
|
||||||
|
public String getMessage(String category, String code) {
|
||||||
String key = category + "_" + code;
|
String key = category + "_" + code;
|
||||||
if (!cache.containsKey(key)) {
|
if (!cache.containsKey(key)) {
|
||||||
// 不包含指定code
|
// 不包含指定code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user