从commons.lang迁移StringEscapeUtils.escapeSql [英] Migrating StringEscapeUtils.escapeSql from commons.lang
本文介绍了从commons.lang迁移StringEscapeUtils.escapeSql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经开始将commons.lang 2迁移到commons.lang3.
I have started to migrate commons.lang 2 to commons.lang3.
根据 https://commons.apache.org/proper/commons-lang/article3_0.html
StringEscapeUtils.escapeSql
StringEscapeUtils.escapeSql
这是一种令人误解的方法,仅处理可能的最简单的SQL案例. >由于SQL不是Lang的重点,因此维护此方法没有任何意义.
This was a misleading method, only handling the simplest of possible SQL cases. >As SQL is not Lang's focus, it didn't make sense to maintain this method.
了解它,但是建议使用什么代替它?
Understand it but what is recommended to use instead of it?
说明
您可以推荐第三方执行类似于StringEscapeUtils.escapeSql的简单escapeSQL吗?
Can you recommend a third party that perform simple escapeSql similar to StringEscapeUtils.escapeSql?
推荐答案
查看全文