Tag Archives: settings

Mybatis configuration Tag Add settings Error [How to Solve]

Record a small problem today
When learning mybatis, you must check the SQL statement, and the related configuration should be introduced into the check statement, as follows

<settings>
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>

However, I have a habit that I always arrange the configuration files in my own order, that is, at the bottom. Who knows, it will report an error. Have a look

1. After checking for a long time, I learned that mybatis config has its own set of node sorting order, which must be observed as follows:

properties,settings,typeAliases,typeHandlers,objectFactory,objectWrapperFactory,reflectorFactory,plugins,environments,databaseIdProvider,mappers

Dear friends, remember