SpringBoot使用(7)--集成国际化(i18n)

在spring里面,需要添加一个ReloadableResourceBundleMessageSource,然后给basename传路径. 在springboot里面,默认使用resources下的messages为前缀名的properties作为国际化的配置文件,可见 MessageSourceAutoConfiguration中 如果需要自定义文件路径,可以在application中配置 或者
相关文章
相关标签/搜索