我做错了什么?这段代码:
def messages = ResourceBundle.getBundle('messages')
发出此错误。我正在努力让国际化在我的申请中发挥作用:
2014-06-01 10:10:14,330 [http-bio-8080-exec-7] ERROR errors.GrailsExceptionResolver - MissingResourceException occurred when processing request: [POST] /FatcaOne_0/customer/authenticate - parameters:
username:
password: ***
Can't find bundle for base name com.fatcaone.i18n.messages, locale en_US. Stacktrace follows:
Message: Can't find bundle for base name com.fatcaone.i18n.messages, locale en_US
Line | Method
->> 1499 | throwMissingResourceException in java.util.ResourceBundle
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 1322 | getBundleImpl in ''
| 1028 | getBundle . . . . . . . . . . in ''
| 33 | doCall in com.twc.fatcaone.CustomerController$_closure2$$EOfwWAnt
| 198 | doFilter . . . . . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 1145 | runWorker . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . . . . in java.lang.Thread