在spring
中配置hibernate
出现该问题,网上说了,原因是因为使用的mysql
连接库版本太高的原因,网上给出的改法为:
将dataSource
中的
改成
如果是一般的项目,这么改就可以了,但是对于配置在spring里的hibernate来说,这么配并不完全清晰和准确。
下面一张图讲清楚解决办法,一定要记得把&改成&
,不然会报一个别的错。
在spring
中配置hibernate
出现该问题,网上说了,原因是因为使用的mysql
连接库版本太高的原因,网上给出的改法为:
将dataSource
中的
改成
如果是一般的项目,这么改就可以了,但是对于配置在spring里的hibernate来说,这么配并不完全清晰和准确。
下面一张图讲清楚解决办法,一定要记得把&改成&
,不然会报一个别的错。
Java交换map的key和value值
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M