如何在Grails中获取ResourceBundle?

时间:2013-02-01 13:11:23

标签: java grails resourcebundle

我把一些属性文件(例如resources.propperties)放在

src/main/resources/com/ebiznext/agregation/service/payment/sips

目录,我尝试在我的代码中检索它们:

ResourceBundle resource = ResourceBundle.getBundle("com.ebiznext.aggregation.service.paiement.sips.resources", Locale.getDefault())

但我得到了例外:

Caused by MissingResourceException: Can't find bundle for base name com.ebiznext.aggregation.service.paiement.sips.resources, locale fr_FR
->> 1499 | throwMissingResourceException in java.util.ResourceBundle
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1322 | getBundleImpl    in     ''
|   1028 | getBundle . . .  in     ''

所以我的问题是在Grails中检索资源包的正确wat是什么?

0 个答案:

没有答案