Android studio中遇到Can't find bundle for base name configd, locale zh_CN解决办法
2017-03-13 10:34
639 查看
最近一个项目中需要从properties中读取信息,结果报Can't find bundle for base name configd, locale zh_CN,百度许久不得解google一下解决问题参考地址点击打开链接
解决办法:
1.将main文件夹添加到资源文件(New > Folder > Java Resources Folder)
2.将配置文件置于resources文件夹下
3.读取代码:
解决办法:
1.将main文件夹添加到资源文件(New > Folder > Java Resources Folder)
2.将配置文件置于resources文件夹下
3.读取代码:
ResourceBundle motan_config = ResourceBundle.getBundle("config"); System.out.print(motan_config.getString("url"));
相关文章推荐
- 解决java.util.MissingResourceException: Can't find bundle for base name configContext, locale zh_CN
- Can't find bundle for base name DBInfo, locale zh_CN解决方法
- Can't find bundle for base name MessageResource, locale zh_CN
- Can't find bundle for base name javax.servlet.LocalStrings, locale zh_CN解决方案
- Can't find bundle for base name javax.servlet.LocalStrings, locale zh_CN错误处理
- Solve java.util.MissingResourceException: Can't find bundle for base name com...config, locale zh_CN
- Can't find bundle for base name Message, locale zh_CN
- 关于:java.util.MissingResourceException: Can't find bundle for base name merchantInfo, locale zh_CN
- 关于SpringMVC MockMvc测试 Can't find bundle for base name javax.servlet.LocalStrings, locale zh_CN错误
- Can't find bundle for base name 的解决方法
- 解决方法:java.util.MissingResourceException Can't find bundle for base name
- 解决ofbiz在myeclipse中调试运行时报错:Can't find bundle for base name cache
- java.util.MissingResourceException: Can't find bundle for base name
- MySqL遇到Can't get hostname for your address解决办法
- Notes for "java.util.MissingResourceException Can't find bundle for base name"
- Can't find bundle for base name
- Can't find bundle for base name 包名.xxxx.文件名,locale 语言简称_国家简称
- Xcode5中ios7模拟器出现 Cannot find executable for CFBundle ... axbundle> (not loaded) 的解决办法
- Android Studio的中文包错误:Can't find resource for bundle java.util.PropertyResourceBundle, key configurab
- Eclipse CDT 调试故障解决:Can't find resource for bundle java.util.PropertyResourceBundle