SpringBoot國際化 - Localization

1.國際化概述 經過替換佔位符,實現語言的本地化:html <!-- thymeleaf模板,其中#{greeting}爲佔位符,引用國際化資源 --> <h1>[[#{greeting}]], This is the body of the sample view</h1> 關於Locale: Locale就是地區的意思,每一個地區的語言有本身的代碼,如簡體中文代碼爲zh_CN,英語爲:en_U
相關文章
相關標籤/搜索