Cannot instantiate object of type org.mybatis.generator.plugins.ToString 解决办法

完成异常为:java.lang.RuntimeException: Cannot instantiate object of type org.mybatis.generator.plugins.ToString...

该异常为运行时异常,在执行Generator.xml配置文件时产生,不能实例化org.mybatis.generator.plugin.tostring类型的对象。

1. 产生原因:org.mybatis.generator.plugins 的版本过低了

Cannot instantiate object of type org.mybatis.generator.plugins.ToString 解决办法

2. 异常再现:

Cannot instantiate object of type org.mybatis.generator.plugins.ToString 解决办法

3. 解决办法:将org.mybatis.generator.plugins版本设置为1.3.6 即可!!

Process finished with exit code 0

 

更多精彩,请关注我的"今日头条号":Java云笔记
随时随地,让你拥有最新,最便捷的掌上云服务