请求是怎么提交给departmentAction_findAll.action的

来源:3-1 Action、Service、Dao的创建及配置

宝慕林3911287

2018-04-19 21:19

程序是怎么找到departmentAction类的findAll方法的?

写回答 关注

2回答

  • 慕数据3377403
    2018-06-03 11:49:25

    请问,这种请求跟哪个包有关系吗?我的代码全都对了,但就是报404错误,错误显示没有映射动作

  • 小蜜蜂飞飞
    2018-04-25 09:37:45

    所有的请求都会被struts过滤,到struts.xml中找到名字为“departmentAction_findAll”的action.我们actiond一般使用通配符配置<action name="departmentAction_*" class="action类的全路径" method="{1}">.这个action满足所有“departmentAction_*”请求,*为该action类中的方法。所以“departmentAction_findAll”可以进入departmentAction类找到findAll方法

    慕数据337...

    请问,这种请求跟哪个包有关系吗,我的代码对了,但一直显示404错误,错误显示没有映射动作

    2018-06-03 11:51:03

    共 1 条回复 >

基于SSH实现员工管理系统之案例实现篇

SSH框架整合案例之实现篇,手把手带你实现员工管理系统

50209 学习 · 323 问题

查看课程

相似问题