当前位置:网站首页>Solutions to connection failures and errors when accessing mysql8 using the SSM project
Solutions to connection failures and errors when accessing mysql8 using the SSM project
2022-06-28 11:32:00 【soha_ dong】
At this time, the first thing to do is to mysql The version number of the driver is changed to the following settings
<!-- Database driven -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
<scope>runtime</scope>
</dependency>And then jdbc The connection of is changed to
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/XXXX?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
The place marked red is very important , Otherwise, there may be some other problems !
jdbc Connected ClassName by "com.mysql.cj.jdbc.Driver"
If you use com.alibaba.druid The library file connecting to the database also needs to be modified to :
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.10</version>
</dependency>This can effectively prevent Mysql8 Some problems caused by
边栏推荐
- Oracle 日期格式化异常:无效数字
- Making and using of dynamic library (shared library)
- Jetpack Compose Desktop 桌面版本的打包和发布应用
- 赛尔号抽奖模拟求期望
- JS foundation 5
- This Exception was thrown from a job compiled with Burst, which has limited exception support. 报错
- 方法重写(Override)
- [sciter]:sciter如何使用i18实现桌面应用多语言切换及其利弊
- Lihongyi, machine learning 7 Conclusion
- Redis6 一:Nosql引入、Redis可以解决什么问题?
猜你喜欢
随机推荐
Characteristics of solar wireless LED display
js中this的默认指向及如何修改指向 2021.11.09
day23 js笔记 2021.09.14
第2章 还记得点、线、面吗(二)
【无标题】虚拟机vmnet0找不到且报错:没有未桥接的主机网络适配器
Get current system date
关于Pytorch中双向LSTM的输出表示问题
Training notice | special training notice on epidemic prevention and security prevention for overseas Chinese funded enterprises, institutions and personnel in 2022
Graduated
GDB简介
网页提示此站点不安全解决方案
实体转JSON时,值为null的字段的丢失问题
day30 js笔记 BOM和DOM 2021.09.24
Day23 JS notes 2021.09.14
mysql-.sql文件钓鱼上线
JS foundation 5
Word、PDF、TXT文件实现全文内容检索需要用什么方法?
Gee: mcd64a1 based globfire daily fire data set
Unity屏幕截图功能
GEE:基于 MCD64A1 的 GlobFire 日常火灾数据集









