所以基本上问题列在标题中。有没有办法在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;
}
}