问题:IDEA中Struts2文件上传时404错误 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

解决:
查看jsp文件,是否form表单中的action出问题,我的问题将action写成了name

解决:把上图中的name改成action即可

就成功了!
IDEA中Struts2文件上传时404错误The origin server did not find a current representation for the target resour
最新推荐文章于 2023-12-08 14:08:00 发布
博客主要讲述了在IDEA中使用Struts2进行文件上传时出现404错误的问题及解决办法。错误提示为目标资源无当前表示或服务器不愿透露其存在,经检查发现是jsp文件里form表单将action写成了name,把name改成action后问题解决。
3万+

被折叠的 条评论
为什么被折叠?



