![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
服务端
试行
学而时用之!
展开
-
Caused by: org.apache.ibatis.binding.BindingException: Parameter ‘assetsNo‘ not found. Available par
解决:需要使用(@Param(“assets”)调用需要使用assets.id数据层代码:在这里插入代码片 /** * 分页查询物资信息 * @return List */ public List<Assets> queryAssetsPage(@Param("assets")Assets assets,@Param("startIndex") int startIndex,@Param("pageSize") int pageSize,原创 2022-05-23 16:58:15 · 84 阅读 · 0 评论 -
Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
Error querying database. Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet successfully received from the server was 14,465,416 milliseconds ago. The last packet sent successfully to the server was 14原创 2022-05-12 15:38:58 · 899 阅读 · 0 评论 -
MyBatis多参数Caused by: org.apache.ibatis.binding.BindingException: Parameter ‘loginNo‘ not found.
Caused by: org.apache.ibatis.binding.BindingException: Parameter ‘loginNo’ not found. Available parameters are [arg1, arg0, param1, param2]修改前:在这里插入代码片 /** * 通过用户登录编号和密码查询用户信息 * @param loginNo * @param password * @return */原创 2022-05-08 15:49:03 · 381 阅读 · 0 评论 -
前端Ajax请求:{“readyState“:0,“responseText“:““,“status“:0,“statusText“:“error“}
请求代码:在这里插入代码片$.ajax({ url:"http://127.0.0.1:8080/demo/login", data:{'username':'张三','password':JSON.stringify(data.field)}, type:"get", async:'true', //jsonp:"callback",原创 2022-04-25 11:53:58 · 1108 阅读 · 0 评论 -
Android报错: org.ksoap2.SoapFault cannot be cast to org.ksoap2.serialization.SoapObject
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2Process: com.uhf200.demo, PID: 7351java.lang.RuntimeException: An error occurred while executing doInBackground()at android.os.AsyncTask3.done(AsyncTask.java:318)atjava.util.concurrent.FutureTask.finishComp原创 2021-12-17 15:31:19 · 2096 阅读 · 0 评论 -
Java服务端与客户端的数据交互
服务端代码:package com.example.demo.servlet;import org.apache.commons.fileupload.FileItem;import org.apache.commons.fileupload.FileItemFactory;import org.apache.commons.fileupload.disk.DiskFileItemFactory;import org.apache.commons.fileupload.servlet.Ser原创 2020-07-20 16:18:34 · 381 阅读 · 0 评论 -
Java对JSON数据的封装与解析
package com.example.demo.util;import org.json.JSONArray;import org.json.JSONException;import org.json.JSONObject;/** * JSON数据的工具类,可以封装JSOn对象、JSON数组字符串 */public class JsonUtil { /** * 封装单个的JSON数据(有Key) */ public static String cr.原创 2020-07-20 10:41:36 · 514 阅读 · 0 评论 -
JSON格式数据的封装与解析
1、单个json数据的封装方法: /** * 封装单独的Json数据 * @return */ public String setJson() throws JSONException { JSONObject jsonObject=new JSONObject(); JSONObject jsonstring=new JSONObject(); jsonObject.put("name","张三");原创 2020-07-17 16:20:56 · 940 阅读 · 0 评论