Error parsing SQL Mapper Configuration.



    
        
        name="returnInstanceForEmptyRow" value="true"/>
    

    
    
        
        
        name="bean"/>
    

log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
org.apache.ibatis.exceptions.PersistenceException: 
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting returnInstanceForEmptyRow is not known.  Make sure you spelled it correctly (case sensitive).
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:54)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:38)
at tools.DBTools.(DBTools.java:18)
at service.StudentService.selectStudentById(StudentService.java:17)
at service.StudentService.main(StudentService.java:11)

如果报Error parsing SQL错误的原因,我碰见的是在自己的Mybatis配置文件中多添加seting 配置,去除它,就可以解决问题。

你可能感兴趣的:(Error parsing SQL Mapper Configuration.)