SpringMVC gets the return result of the Controller in the interceptor

In Controller:

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

 In the interceptor:

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

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327011366&siteId=291194637