上周在使用是springboot出现了个如标题所示的错误,然而,我印象中出现这个错误却不太清除为何,于是跟踪错误进行查看
具体的情况是如下图,在源码中是获取了connection连接对象,而当打开这个连接时出现这样的错误,却说驱动是否最有效,所以决定切换高版本的mysql驱动 jar包。如我的是5.0.5 这时我换成,5.1.47就可以了,然而当我对比我原来的代码中也是用的5.0.5却没有任何问题,但是,如果jar包变为5.1.47或者更高就没问题了,这样是不是因为其他jar包的高版本所受到的阻碍呢。
项目所用jar包如下:
我有点怀疑是不是因为mybatis版本的影响呢:
当我使用低版本的mybatis的jar包时所有的参数运行不可以了,但应该可以肯定与和这个有关,因为这类的确是这个包中的
所以最终的解决方案,换高本中的,肯定是 无效的原因,但是切换后的确可以了,具体的细节似乎懂了,但确是略知一二而已。就先这样吧。