我不明白为什么我的message.properties文件中的某些字符串不会显示在我的gsp中。更确切地说,该文件中的键名在值中不是。
例如,我的messages.properties中的这个字符串:
gtunes.store.subtitle=Your online music store and storage service!
出现在我拥有这行代码的gsp上:
<h1><g:message code='gtunes.store.subtitle'/></h1>
简单地说:
gtunes.store.subtitle
我的代码是here。