-
Struts2
- Web.xml中配置struts的核心過濾器
- Struts.xml中定義跳轉鏈接:分發請求
沒有指定匹配符,說明此action.java中只有一個默認的execute方法
- struts2如和做到前後臺交互的
- 前臺--->後臺
- 表單中
- 前臺--->後臺
action中
- 後臺--->前臺
- 保存到值棧中
- 保存到session中
-
SpringMVC
- springMVC中的web.xml中
- requestMapping
:分發請求
- controller上
- 方法上
- 前後臺交互
- 前臺--->後臺
- form表單提交,後臺接收
- 前臺--->後臺
- post提交的url:content/query/list?categoryId='123'&page=1&rows=20
- 後臺--->前臺
json
- 爲什麼springMVC取代了struts2
SpringMVC和struts2都是前端mvc框架.
主要看1,2,6(SSH和BootStrap-table分頁),10,11