About the transaction connection database error error create connection SQLException, url: jdbc:mysql://loca……solution

About transaction connection database error S1009: error create connection SQLException, url: jdbc:mysql://loca...errorCode 0, state S1009...

错误:error create connection SQLException, url: jdbc:mysql://localhost:3306/vip05?characterEncoding=uft-8, errorCode 0, state S1009
java.sql.SQLException: Unsupported character encoding ‘uft-8’

When configuring datasource.url, you cannot simply configure it like this:

jdbc.url = jdbc:mysql://localhost:3306/vip05?characterEncoding=uft-8

Try to add some necessary suffix information (change to the following configuration will do):

jdbc.url = jdbc:mysql://localhost:3306/vip05?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

Guess you like

Origin blog.csdn.net/yi_HelloC/article/details/113101391