Spring Interceptor:如何在preHandle方法中填充模型?

时间:2016-03-12 07:23:52

标签: java spring spring-mvc

所以基本上问题列在标题中。有没有办法在org.springframework.ui.Model方法中填充preHandle

public class SomeInterceptor extends HandlerInterceptorAdapter {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        // need to populate Model here
        return true;
    }
}

0 个答案:

没有答案