com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket fatConnectionException: Could not create socket factory 'com.google.cloud.sql.mysql.So
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.google.cloud.sql.mysql.SocketFactorySparkSubmit.scala:933)Caused by: java.lang.ClassNotFoundException</
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.google.cloud.sql.mysql.SocketFactoryCaused by: java.lang.ClassNotFoundException: com/google/cloud/sql/mysql/SocketFactory;
at java.lang.Class
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create socket factory 'com.google.cloud.sql.mysql.SocketFactorySparkSubmit.scala:124)Caused by: java.lang.ClassNotFoundException</
我在GCP云帐户中创建了SQL实例,如果我在本地运行,它可以正常工作。但是它在将Spring应用程序部署到GCP之后抛出了错误。 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.clas
Additional JDBC connection string options设置为按设置为cloudSqlInstance=<INSTANCE_CONNECTION_NAME>&socketFactory=com.google.cloud.sql.mysql.SocketFactorySocket factory failed to initialized with option "socketFactory" set to "com.google.cloud.sql.mysql.SocketFactory</e
GoogleCloudPlatform/cloud-sql-jdbc-socket-factory for details.
config.addDataSourceProperty("socketFactory", "com.google.cloud.sql.mysql.SocketFactorycloudSqlInstance=pashuserver:asia-south1:mysql-instance&socketFactory=com.google.cloud.sql.mysql.SocketFactory</e