在URL链接参数中配置rewriteBatchedStatements、useServerPrepStmts为true
url="jdbc:mysql://****/dbName?useSSL=false&rewriteBatchedStatements=true&useServerPrepStmts=true"
查询调用情况:
show global status like ‘%prepare%‘;
原文:https://www.cnblogs.com/101key/p/11624996.html