天天看點

SpringMVC在攔截器中擷取Controller的傳回結果

在Controller中:

model.put("result", "success");
           

 在攔截器中:

String result = (String) modelAndView.getModel().get("result");