thymeleaf读取配置文件问题

写好了一个正常的properties文件,然后使用 thymeleaf在页面进行取值

结果:??user.name_zh_CN??

这是为什么呢,原来这里的properties文件名必须是messages,这是spring boot规定的国际化文件名

猜你喜欢

转载自blog.csdn.net/progammer10086/article/details/86577395