context with path threw exception Request processing failednested exception is org.apache.ibatis:已解决

问题描述

context with path [] threw exception [Request processing failed;nested exception is org.nybatis.spring.MyBatissystenException:nested exception is org.apache.ibatis.exceptions.PersistenceException
context with path threw exception Request processing failednested exception is org.apache.ibatis:已解决_第1张图片

解决方法

我的User类中多了一行数据,导致Mapper传回来的数据无法与其一致对应,只需要删除age这行和toString、Getter and Setter、Constructor等包含age的内容即可
总结:在SQL数据库建立初期是有age的,后来我删除age了,却忘记把User类中的age也进行处理
context with path threw exception Request processing failednested exception is org.apache.ibatis:已解决_第2张图片


以上就是本文全部内容,如果它对您有帮助,请您帮我点个赞,这对我真的很重要

你可能感兴趣的:(apache,mybatis,数据库,maven,mapreduce)