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
    版权声明:本文为博主原创文章,转载请附上博文链接!

  • 相关阅读:
    系统设计实现
    反编译
    android layout analyze
    2016.7.20-notes
    如何认识刘昊然?
    leetcode-中等-队列-二叉树的层次遍历
    leetcode-简单-栈-逆波兰表达式
    leetcode-简单-栈-有效的括号
    队列-链式队列
    队列-循环队列-顺序存储
  • 原文地址:https://www.cnblogs.com/softidea/p/10756042.html
Copyright © 2011-2022 走看看