2

How and where to create property file in grails and i have to display the content of property file in main.gsp(Layout)

4

1 回答 1

2

您可以将消息存储在标签中grails-app/i18n/messages.properties并使用g:message标签,例如:

<g:message code="my.message.code" />

请参阅文档: http: //grails.org/doc/latest/ref/Tags/message.html

于 2013-04-25T11:59:22.710 回答