报错generate on project XX resource xx.properties does not exist

Posted 不语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错generate on project XX resource xx.properties does not exist相关的知识,希望对你有一定的参考价值。

问题:
mybatis-generator报错:generate (default-cli) on project XXX <properties> resource xx.properties does not exist

原因:
mybatis-generator.xml文件中无法找到数据源的properties文件

解决:
一般都是用完pom.xml中配置了:

<resources>
      <!--打包指定目录中的xml文件(在java目录存放xml时需要配置)-->
      <resource>
          <directory>src/main/java</directory>
          <includes>
              <include>**/*.xml</include>
          </includes>
      </resource>
      </resources>

导致mybatis-generator.xml默认查找不到数据源的properties文件,把这个配置注释掉就好

以上是关于报错generate on project XX resource xx.properties does not exist的主要内容,如果未能解决你的问题,请参考以下文章

rsync报错@ERROR: auth failed on module XX

Maven执行compile命令报错提示“on project xxx: Cannot create resource output directory“

Eclipse运行程序报错: Errors running builder ‘Integrated External Tool Builder‘ on project

MyEcplise导入项目报错:Errors running builder 'JavaScript Validator' on project '项目名'. ja

the resource is not on the build path of a Java project报错解决

mavenMaven插件篇 --- maven项目 mvn install 报错: Failed to execute goal on project 项目名: Could not resol(代