zoukankan      html  css  js  c++  java
  • mybatis-generator插件执行报错:Cannot resolve classpath entry

    记录一个小问题

    使用了mybatis-generator插件自动生成实体类,DAO,Mapper,在执行时报错。报错信息如下

    Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project onlineStudyManager: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate failed: Cannot resolve classpath entry: D:managersrcmain esources

    查看mybatis-generator.xml未找到有关该路径的相关信息

    Cannot resolve classpath entry 翻译:不能解决类路径条目

    D:managersrcmain esources该路径与代码文件路径有关,但是错误的

    正确的为 D:managersrcmain esources

    <resource>
         <directory>${basedir}src/main/resources</directory>
         <excludes>
               <exclude>lib/*.jar</exclude>
         </excludes>
    </resource>

    路径修改为 ${basedir}/src/main/resources 解决问题


    ---------------------
    作者:黄三岁TYOB
    来源:CSDN
    原文:https://blog.csdn.net/qq_20492999/article/details/80763550
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    [IOI2013]Dreaming
    Lost Cows
    Mobile Service
    [POI2005]Bank notes
    [CTSC2007]动物园zoo
    [CF1093F]Vasya and Array
    [雅礼集训 2017 Day1]市场
    [APIO2014]序列分割
    [CEOI2004]锯木厂选址
    [APIO2010]特别行动队
  • 原文地址:https://www.cnblogs.com/softidea/p/10756042.html
Copyright © 2011-2022 走看看