pon.xml引用
org.mybatis.spring.boot
mybatis-spring-boot-starter
2.1.3
不要做如下配置,验证了好久这个一配就会报错mapper的xml文件错误;
mybatis:
config-location: classpath:mapper/studentDao.xml
改成如下可以编译成功(奇怪的是并没有使用mybatis-plus-spring-boot-starter组件);
mybatis-plus:
config-location: classpath:mapper/studentDao.xml
#返回结果映射
#column 为数据库中的名称 property 为java变量名
#大括号里边为java变量名,=号左边为表中名字
select * from paymenttableee where goodssName=#{goodssName};
【Mybatis】Error parsing SQL Mapper Configuration. Cause: java.lang.NullPointerException: Cannot invok
于 2022-06-20 00:45:11 首次发布