This exception is due to the fact that generics are not specified by the generic mapper, so we can specify generics as the entity class we need.
Link of this Article: Caused by: org. spring framework. beans. factory. UnsatisfiedDependency Exception: Error created Caused by: tk. mybatis. mapper. MapperException: Cannot obtain generic information of cn. itcast. mapper. UserMapper. With PrimaryKey method!