@@ -0,0 +1,1041 @@
+package cn.libofeng.air.core.web.controller;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.context.MessageSource;%0Aimport org.springframework.web.servlet.LocaleResolver;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0A%0Apublic abstract class MessageAwareController extends BaseController %7B%0A    @Autowired%0A    private MessageSource messageSource;%0A%0A    @Autowired%0A    private LocaleResolver localeResolver;%0A%0A    protected String getMessage(HttpServletRequest request, String code) %7B%0A        return messageSource.getMessage(code, null, localeResolver.resolveLocale(request));%0A    %7D%0A%0A    protected String getMessage(HttpServletRequest request, String code, Object%5B%5D args) %7B%0A        return messageSource.getMessage(code, args, localeResolver.resolveLocale(request));%0A    %7D%0A%0A    protected String getMessage(HttpServletRequest request, String code, Object%5B%5D args, String defaultMessage) %7B%0A        return messageSource.getMessage(code, args, defaultMessage, localeResolver.resolveLocale(request));%0A    %7D%0A%7D%0A

add message aware controller.