1
我收到以下異常,但我已在類類中創建了ResBundle
類。java.util.MissingResourceException:無法找到基本名稱ResBundle,語言環境en_GB
java.util.MissingResourceException: Can't find bundle for base name ResBundle, locale en_GB
我的調用代碼
Locale locale = Locale.getDefault();
ResourceBundle resourceBundle = ResourceBundle.getBundle("ResBundle", locale);
是的,它提供包名稱後工作。 – Kalher