Service中如何调用国际化配置文件?

@Autowired   

private MessageSource msg;


msg.getMessage("alt.error",new String[] {}, Locale.SIMPLIFIED_CHINESE);

你可能感兴趣的:(springmvc,spring)