java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required
Caused by: com.mysql.cj.exceptions.UnableToConnectException: CLIENT_PLUGIN_AUTH is required
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_71]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_71]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_71]
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_71]
说是数据库无法连接,查阅资料发现是mysql 的包版本的问题,我的包版本太高了
是8开头的版本,现在换成5开头的版本就好了;
注意:8开头的版本,Driver要加上cj:com.mysql.cj.jdbc.Driver,5开头的不要加