struts2 文件上传中断 再次访问404

    xiaoxiao2021-03-25  83

    项目采用struts2+spring。在附件上传时中断,然后该action类中所有action请求访问都会404。

    原因:struts2默认多例模式,但使用spring管理action,默认为单例模式,需修改action配置,添加scope="prototype"

    转载请注明原文地址: https://ju.6miu.com/read-24562.html

    最新回复(0)