Problem description
When testing the selection operation of mybatis, the idea reports an error,
org.apache.ibatis.binding.BindingException: Type interface xxx is not known to the MapperRegistry.
Solution:
Reason: each mapper.xml needs to be registered in the mybatis core configuration file
add the following code to mybatis-config.xml.
<mappers>
<mapper resource="com/dingha/dao/UserMapper.xml"/>
</mappers>
Done!
Read More:
- Mongodb java version 3.X, prompt “XXX (an encryption algorithm) is not available” when there is a user name and password
- [Solved] Configuration Error: deployment source ‘xxx:war‘ is not valid
- Initializingbean Interface & Applicationcontextaware Interface in Springboot
- C# Bug Fixed InvalidCastException: Cannot cast from source type to destination type.
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- [Solved] Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- [Solved] Failed to configure a DataSource: ‘url‘ attribute is not specified…bug
- [Solved] Mapped Statements collection does not contain value for xxx
- Error:Cannot build artifact xxx:war exploded’ because it is included into a circular dependency
- Feign Error: Load balancer does not have available server for client:XXX
- org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying XXX
- There was an unexpected error (type=Internal Server Error, status=500).Invalid bound statement (not
- [Solved] seata Error: io.seata.rm.datasource.exec.LockConflictException: get global lock fail, xid:xxx, lockKeys:xxx
- springboot jsp: There was an unexpected error (type=Not Found, status=404). No message available
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could [Solved]
- [Solved] SpringBoot Project Startup Error: Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
- Java Error: No enclosing instance of type Main is accessible. Must qualify the allocation with an encl
- Using java to call Jython, the error URI is not hierarchical
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.