bug以及解決方案
- 不允許執行多個語句
- 不允許有注釋
- 部分數據有誤識別,拋出異常,導致原本正常執行的語句被中斷
解決方案
application.yaml中對于druid配置如下:
wall:enabled: true # 開啟防火墻config:multi-statement-allow: true # 允許多個語句同時執行comment-allow: true # 允許注釋throw-exception: false # 檢測異常,但是不終止執行log-violation: true # 開啟日志記錄
參考鏈接:https://www.cnblogs.com/soundcode/p/6483899.html