Request processing failed; nested exception is java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List 错误写法: 错误原因,没有默认的构造器,需要传输一个传输类 正确写法 DispatchDTO内容如下:…
接口正常执行,返回给前端后报服务器500异常,异常详情: org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class java.util.ArrayList 原因没有深究,大概是$.ajax函数在前端接收的数据类型为JSON,而服务中没有能将ArrayList转换成JSON的类. 暂时记下解决方案——在项目中添加JSON…
1 异常信息: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'email' not found. Available parameters are [param1, tag] 传递的参数为Map类型 一直对Map类型作为参数不是很熟悉,后来定位到Map参数取值问题. 原因是:Dao接口里面使用了@Param…