报错记录:
[logException,194] - Resolved [org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'adapterId' in 'class java.lang.Long']
解决方案:
错误写法:
正确写法:
原因分析:
mybatis中的占位符#{}和${}具体区别可以查找资料
这是在mybatis中,占位符#{}和${}的使用有点区别,一般推荐使用#{}占位符。