spark jdbc 写入mysql 遇到序列化问题 Caused by: java.io.NotSerializableException: com.mysql.jdbc.JDBC4PreparedStatement
代码如下:valdata=sc.parallelize(List(("192.168.34.5","pc",5,12)))valurl="jdbc:mysql://ip:端口/数据库?"///user=username&password=password”classOf[com.mysql.jdbc.Driver]valconn=DriverManager.getConnection(url,us