Question:
Mybatis generator reports an error: generate (default CLI) on project XXX < Properties > resource XX properties does not exist
reason:
mybatis-generator. The properties file for the data source cannot be found in the XML file
solve:
It’s usually POM XML is configured with:
<resources>
<!-- Package XML files in the specified directory (configuration required when storing XML in Java directory) - >
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
Leads to mybatis generator XML can’t find the properties file of the data source by default. Just comment out this configuration