java.lang.ClassCastException: com.alibaba.druid.pool.DruidPooledConnection cannot be cast to oracle.jdbc.OracleConnection
@Inject
private DruidDataSource datasource;
Connection conn = datasource.getConnection();
String shpSqlStr = "insert into map_table values(?,?,?,?,?,?,?)";
PreparedStatement shpStmt = conn.prepareStatement(shpSqlStr);
Struct struct = shape.getStruct(conn, 1);
shpStmt.setString(1,"1");
shpStmt.setObject(2,struct);
shpStmt.setInt(3,1);
shpStmt.setString(4,"1");
shpStmt.setString(5, "1");
shpStmt.setBigDecimal(6, null);
shpStmt.setBoolean(7, false);
shpStmt.execute();