Springboot项目i18n国际化配置
1、创建Springboot项目
创建Springboot项目,添加以下依赖:
Spring Web
Thymeleaf
2、Springboot项目i18n配置
thymelea模板配置:
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
messages:
basename: i18n/messages