springboot中,mybatis报错Caused by: java.lang.ClassNotFoundException: tk.mybatis.mapper.generator.Mapper

springboot当中,映射不成功报错。

报错信息:
Caused by: java.lang.RuntimeException: Cannot instantiate object of type tk.mybatis.mapper.generator.MapperPlugin
Caused by: java.lang.ClassNotFoundException: tk.mybatis.mapper.generator.MapperPlugin

解决办法:检查一下tk.mybatis.mapper插件,如果已经添加则尝试修改一下版本。


    tk.mybatis
    mapper
    4.1.5

你可能感兴趣的:(springboot)