Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource

目录

 一、所报错误:

二、解决方法: 格式是这样才对

 一、所报错误:

Caused by: org.apache.ibatis.builder.BuilderException:

       Error parsing SQL Mapper Configuration. Cause: java.io.IOException:

       Could not find resource com.myStudy.dao.StudentDao.xml

 报错原因我找了又找!!!才发现原来是mybatis.xml主配置文件中的sql映射文件格式不对:
Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource_第1张图片

二、解决方法: 格式是这样才对

三、 mybatis.xml 正确的主配置文件




    
    

    
        
            
            
            
            
            
                
                
                
                
                
            
        
    
    
        
    


你可能感兴趣的:(sql,java,数据库)