springboot 国际化

i18n

在resiurce下创建i18n文件夹

 修改yaml文件

spring:
  messages:
    basename: i18n.login

4、修改模板

thymeleaft语法

#{login.tip} 国际化

添加语言配置

 

原文地址:https://www.cnblogs.com/wt7018/p/13369900.html