动态sql异常bug
Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'user' in 'class org.pojo.User'
### Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'user' in 'class org.pojo.User'
解决方式 将user.id换成id 即可
感悟
mybatis 用参数时 是直接用实体类的参数 不用直接声明,parameterType就已经代表了使用了user对象