Spring-boot 国际化

在application.properties文件中配置

spring.message.basename=i18n.login

 页面使用

th:text="#{login.tip}"

[[#{login.tip}]]

原文地址:https://www.cnblogs.com/zhoucx66/p/9259669.html