利用springboot 的messages.proerities
index.email=111111@qq.com
我们在messages.properties中配置了index.email
我们在页面中就可以这样得到
在对应的标签中用
th:text="#{index.email}"
我们还可以利用springboot的messages.properties来做国际化
其中当在英文的环境中会使用messages_en_US的配置文件
在中文的环境中会使用messages_zh_CN的配置文件
当环境中没有自己配置的语言类型,就会去me...
原创
2020-05-27 16:10:53 ·
943 阅读 ·
0 评论