Recently, an online security scan found a vulnerability in the MySQL connector. I checked and found that the version used was 5.1.47, which is indeed a long time ago. It is recommended to upgrade to the latest version 8.0.27 There are always some problems with upgrades. After changing the connector, the deployment reported an error.
Can't connect to the database I searched the configuration file and found that the class for the connection pool configuration connection could not be found. After switching back to mysql-connector-java 5.1.47, this class can be found Checking the jar package source code, I found that after changing mysql-connector-java 8.0.27, the path of the class connecting to jdbc has changed, which is a big pit. Finally, just change it to com.mysql.cj.jdbc.MysqlDataSource Finally, attach the database connection configuration of mysql8.0+
The rest of the framework configuration is
This is the end of this article about the precautions for upgrading to mysql-connector-java8.0.27. For more information about mysql-connector-java8.0.27, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to understand the difference between ref toRef and toRefs in Vue3
>>: Solution to overflow of html table
One of the most important features of a style she...
Table of contents 1. Trigger Solution 2. Partitio...
Development Background: Recently, I am working on...
NProgress is the progress bar that appears at the...
Table of contents 1. Array.at() 2. Array.copyWith...
This article introduces in detail some of the tech...
Ubuntu is a free and open source desktop PC opera...
1. Add the isolation marker: ip netns add fd 2. P...
This article shares the specific code of Vue intr...
1 Start the Docker service First you need to know...
<br />Original article: http://www.alistapar...
After installing centos 8, the following error wi...
Table of contents 1. Software and system image 2....
OOM stands for "Out Of Memory", which m...
1. Log in to the system and enter the directory: ...