首页 > 其他 > 详细

mybatis-generator插件执行报错:Cannot resolve classpath entry

时间:2019-04-23 14:28:21      阅读:2634      评论:0      收藏:0      [点我收藏+]

 

记录一个小问题

使用了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:\managersrc\main\resources

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

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

D:\managersrc\main\resources该路径与代码文件路径有关,但是错误的

正确的为 D:\manager\src\main\resources

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

 

mybatis-generator插件执行报错:Cannot resolve classpath entry

原文:https://www.cnblogs.com/softidea/p/10756042.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!