Solve java.util.MissingResourceException: Can't find bundle for base name com...config, locale zh_CN at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)a
问题描述:今天在进行程序国际化编程时,碰到MissingResourceException异常,大意是没有找到属性文件.当时项目目录如下: 我把两个属性文件放到源码包下,所以会出现问题. 解决途径:将属性文件放到src目录下(最好放在与.class同目录下) Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name Message, locale zh_C
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name MessageResource, locale zh_CN at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427) at java.util.ResourceBundle.getBundl