SpringBoot国际化 - Localization

1.国际化概述 经过替换占位符,实现语言的本地化:html <!-- thymeleaf模板,其中#{greeting}为占位符,引用国际化资源 --> <h1>[[#{greeting}]], This is the body of the sample view</h1> 关于Locale: Locale就是地区的意思,每一个地区的语言有本身的代码,如简体中文代码为zh_CN,英语为:en_U
相关文章
相关标签/搜索