1. 问题描述: 今天在SpringMVC应用中上传参数的时候遇到如下问题: The request sent by the client was syntactically incorrect 这说明在提交的参数中,有的参数不符合服务器端数据要求.在排除其它参数没问题的情况下,确定是其中的时间参数除了问题. 客户端传送的时间参数如下所示:
用MyBatis进行查询,传入参数只有一个时(非Map)如int,报错 There is no getter for property named 'sleevetype' in 'class java.lang.Integer 解决方法一: 原因在于测试条件写法有误, <if test="sleevetype==0"><!-- 专属 --> exclusive=1 </if> <if test="sleevetype!=0"