spring boot 2.0.5 + thymeleaf3 国际化,无法自动加载MessageSource,找不资源文件,页面访问出现问号

首先,需要明确一点,国际化资源文件必须包含默认文件和国家语言文件,且必须: (1)直接放在类路径下 (2)或放在resource目录下 1、spring boot 添加 thymele3依赖 <!-- 导入 thymeleaf 模板 --> <dependency> <groupId>org.springframework.boot</groupId>
相关文章
相关标签/搜索