Mybatis报错:java.io.IOException: Could not find resource comydmapperUserMapper.xml

Mybatis报错:java.io.IOException: Could not find resource comydmapperUserMapper.xml,第1张

Mybatis报错:java.io.IOException: Could not find resource com/yd/mapper/UserMapper.xml

按照网上教程搭建mybatis开发环境,我的本地目录如下:

 其中测试的映射文件位置在com.yd.mapper.UserMapper.xml中

内容如下





    
    
    
        select *
        from user
        where id = #{id}