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
Similar Posts:
- [Solved] Mybatis-config Error: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: failed to parse the connection string near ‘;useUnicode=true&
- Treatment of MySQL database keyword as column name by mybatisplus — sqlsyntax errorexception: you have an error in your SQL syntax;
- [Solved] Springboot Error: invalid bound statement (not found)
- How to Solve Idea Issue: “marketplace plugins are not loaded”
- After introducing mybatisplus, the user-defined method is used to solve the invalid bound statement (not found) error
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘deptController’: Unsatisfied dependency expressed through field ‘departmentMapper
- [Solved] Error:java: error: release version 5 not supported & Switch Unrecognized String
- [Solved] Mybatis Error: Invalid bound statement (not found)