
全栈
AdamShyly
努力学习
展开
-
JS window.onload AJAX调用JDBC connection自动关闭解决方案
//以下是开发过程中的一个demo函数window.onload = function () { getAllRoomInfo();}function getAllRoomInfo() { const xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200).原创 2021-12-26 16:44:28 · 381 阅读 · 0 评论 -
C# There is already an open DataReader associated with this Connection which must be closed first.
public static int[] getAllMemberId(Room room){ int[] uid = new int[room.CurrentNum]; string sql = "SELECT * FROM room_member WHERE rid = " + room.Rid; MySqlCommand command = new MySqlCommand(sql, connection); MySqlDataReader sqlDataReader.原创 2021-12-26 03:25:56 · 938 阅读 · 0 评论 -
Unhandled Exception: System.Net.Sockets.SocketException: 以一种访问权限不允许的方式做了一个访问套接
C#WebSocket此时的端口号被另一个进程占用了,更改0.0.0.0:后面的端口号即可原创 2021-12-25 01:17:37 · 1484 阅读 · 0 评论 -
Java web 使用 AJAX POST方法405报错
<form action="#" method="post" onsubmit="return isAJAX()"></form> <!-- method="post"要加上,否则默认GET方法 -->原创 2021-12-20 00:54:07 · 630 阅读 · 0 评论 -
Java Web搭建
1.Servlet类在重写doPost()方法时原创 2021-12-18 15:47:29 · 2852 阅读 · 0 评论 -
虚拟机(win11)和云服务器的WarmServer配置缺少MSVCR110.dll
首先需要安装win11镜像原创 2021-12-12 14:07:26 · 1043 阅读 · 0 评论 -
将web项目部署到服务器(包含mysql、php服务)面向个人开发
如何将web项目部署到服务器原创 2021-11-26 01:19:45 · 831 阅读 · 0 评论