什么是<spring:message>?

a L*_*ner 0 spring spring-mvc

什么是<spring:message>标签?它有什么用?我尝试用谷歌搜索,但找不到任何有用的内容。

Las*_*ama 5

您可以使用这些标签根据语言更改文本。只需使用

<spring:message code="some_name"/>
Run Code Online (Sandbox Code Playgroud)

标签,您可以在配置后使用相关的 .properties 文件将文本填充到 JSP 中。

对于教程,您可以使用下面的链接

http://www.mkyong.com/spring-mvc/spring-mvc-internationalization-example/