Home > other >  A JDBC connection MySQL database insert characters garbled words how to solve
A JDBC connection MySQL database insert characters garbled words how to solve

Time:09-26

Heavy environmental N
GBK and utf8 tried
Insert data is either go to the database to see the code
Either an error

CodePudding user response:

JDBC precompiled add and delete

http://www.verejava.com/? Id=1715771977132

CodePudding user response:

Directly modifying the content of the connection pool
Such as url=JDBC: mysql://localhost: 3306/test
Instead of the url=JDBC: mysql://localhost: 3306/test? UseSSL=false& characterEncoding=utf-8& AutoReconnect=true
  • Related