/** * 鏍规嵁key 鏉ユ煡鎵�鍊� * * @param key * @return */ public static String getMsgByKey(String key) { if (key == null | key.trim().length() <= 0) { return null; } return applicationContext.getMessage(key, null, Locale.getDefault()); }
public String getMessage(String arg0, Object[] arg1, Locale arg2) throws NoSuchMessageException { return applicationContext.getMessage(arg0, arg1, arg2); }
public String getMessage(String arg0, Object[] arg1, String arg2, Locale arg3) { return applicationContext.getMessage(arg0, arg1, arg2, arg3); }
public String getMessage(MessageSourceResolvable arg0, Locale arg1) throws NoSuchMessageException { return applicationContext.getMessage(arg0, arg1); }