MVC 的推拉模型有什么区别?
Struts2、Spring MVC是基于Pull的吗?
最佳答案
根据 Struts2 Interview Questions and Answers
Struts2 is a Pull-MVC based architecture, in which all data is stored in Value Stack and retrieved by view layer for rendering.
具体来说:
In case of Push-MVC the data (Model) is constructed and given to the view layer by the Controllers by putting it in the scoped variables like request or session. Typical example is Spring MVC and Struts1. Pull-MVC on the other hand puts the model data typically constructed in Controllers are kept in a common place i.e. in actions, which then gets rendered by view layer.
关于java - MVC 中的推与拉模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17441926/