zoukankan      html  css  js  c++  java
  • Mybatis Generator 路径和实体类要放的路径不一致 导致Could not resolve type alias

    Mybatis Generator 路径和实体类要放的路径不一致。会出现一系列的错误。手动修改alias也还是会报错,直接重新生成

    org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
    
     Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: 
    Failed to parse mapping resource: 'file [D:IDEA_workspaceCrowdFundingatcrowdfunding10-member-mysql-provider	argetclassesmybatismapperMemberPOMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:IDEA_workspaceCrowdFundingatcrowdfunding10-member-mysql-provider	argetclassesmybatismapperMemberPOMapper.xml]'. 
    Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. 
    Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'cc.landfill.crowd.entity.MemberPO'. 
    Cause: java.lang.ClassNotFoundException: Cannot find class: cc.landfill.crowd.entity.MemberPO
    
    

    修改路径为要生成后要放的包,重新生成一下

       <javaModelGenerator targetProject=".srcmainjava" targetPackage="cc.landfill.crowd.entity.po">
            <!-- enableSubPackages:是否让 schema 作为包的后缀 -->
    
  • 相关阅读:
    WCF自定义消息编码器 part 2 from MSDN
    EYQiPa,梦开始的地方
    WCF负载平衡 from MSDN
    WCF安全体系结构 from MSDN
    Introduction to Locking in SQL Server z
    WCF 性能计数器 from MSDN
    关于EYQiPa 持续更新
    12 个免费在线的 Web 网站性能测试工具 转
    使用FileSystemWatcher监控目录 z
    IIS相关
  • 原文地址:https://www.cnblogs.com/land-fill/p/13458658.html
Copyright © 2011-2022 走看看