请问 Invalid bound statement (not found)如何解决?
来源:3-4 集成持久层框架Mybatis

慕勒6293099
2023-12-16
#application.properties 做了以下配置
mybatis.mapper-locations=classpath:/mapper/**/*.xml
#TestMapper.java
package com.jiawa.wiki.mapper;
import com.jiawa.wiki.domain.Test;
import java.util.List;
public interface TestMapper {
public List list();
}
#TestMapper.xml如下配置
<?xml version="1.0" encoding="UTF-8" ?>
select `id`, `name`, `password` from `test`
写回答
3回答
-
慕勒6293099
提问者
2023-12-16
已经解决了,原来建的TestMapper文件没有.xml的后缀
00 -
慕勒6293099
提问者
2023-12-16
TestController
00 -
慕勒6293099
提问者
2023-12-16
如上图
00
相似问题