美文网首页
mybitis: Cannot resolve referenc

mybitis: Cannot resolve referenc

作者: 橙小光 | 来源:发表于2017-04-27 15:47 被阅读0次
    警告: Bean creation exception on non-lazy FactoryBean type check: 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserMapper' 
    defined in URL [file:/D:/iflytekStudy/myproject/target/classes/spring-mvc.xml]: Cannot resolve reference to 
    bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 
    'sqlSessionFactory' defined in URL [file:/D:/iflytekStudy/myproject/target/classes/spring-mvc.xml]: Invocation of 
    init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping 
    resource: 'file [D:\iflytekStudy\myproject\target\classes\mapper\UserMapper.xml]'; nested exception is 
    org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: 
    org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: 
    org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.iflytek.cms.pojo.User'.  Cause: 
    java.lang.ClassNotFoundException: Cannot find class: com.iflytek.cms.pojo.User
    
    
    Paste_Image.png

    **
    用generator时出现的错误:这个错误的地方不在mybatis配置文件,在mapper.xml中:
    **

    Paste_Image.png

    相关文章

      网友评论

          本文标题:mybitis: Cannot resolve referenc

          本文链接:https://www.haomeiwen.com/subject/ynxnzttx.html