这里写自定义目录标题


Servlet.service() for servlet [dispatcherServlet] in context with path [/hydro-mvc] threw exception [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] with root cause

java.io.IOException: 你的主机中的软件中止了一个已建立的连接。

1、异常表现:我在html文件中有一个表单,里面有一个保存事件按钮。保存

onclick的js函数里我是用ajax提交的数据,用于局部刷新页面。

2、问题原因:在Internet Explorer 的默认类型是 “button”,而其他浏览器中(包括 W3C 规范)的默认值是 “submit”。

所以导致了表单重复提交。出现“java.io.IOException: 你的主机中的软件中止了一个已建立的连接”异常。

3、问题解决:把代码 改为保存,为按钮定义Type属性为button。

相关文章:

  • 2021-06-17
  • 2023-03-20
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
相关资源
相似解决方案