我不得不求助于普通的JDBC,它的工作原理是:
Class.forName("com.mysql.jdbc.Driver");Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/mySchema?autoReconnect=true&useSSL=false&rewriteBatchedStatements=true", "root", "root");Statement stmt = conn.createStatement();int flag = stmt.executeUpdate(sqlString);LOGGER.info("Flag = {}", flag);不知道为什么Spring JdbcTemplate无法处理这种事情!



