标签:
quoted from answer at http://stackoverflow.com/questions/14015642/how-does-the-dispatcherservlet-resolver-and-controllers-interact
When sending a request to your application the following happens:
preHandle
methodspostHandle
method (e.g. for modifying the model)ViewResolver
. Depending on the ViewResolver the result can be jsp page, a tiles view, a thymeleaf templateor many other ‘Views‘. In your case the ViewResolver
resolves a view name (e.g. ‘myPage‘) to a jsp file (e.g. /WEB-INF/jsp/myPage.jsp
)afterCompletion
method)标签:
原文地址:http://www.cnblogs.com/litao9046/p/5177046.html