Java问题集锦--The type StringEscapeUtils is deprecated
生活随笔
收集整理的這篇文章主要介紹了
Java问题集锦--The type StringEscapeUtils is deprecated
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
The type StringEscapeUtils is deprecated”
之前一直使用commons-lang3-3.x.jar 這個jar包里面的 org.apache.commons.lang3.StringEscapeUtils 類來轉義特殊字符,但是最近發現使用這個類會出現以下提示:
解決方法,StringEscapeUtils 這個類已經過期了,需要引入它的替代類 org.apache.commons.text.StringEscapeUtils 的Maven依賴,如下所示:
<!--解決前臺傳遞到后臺參數特殊字符轉譯工具--><dependency><groupId>org.apache.commons</groupId><artifactId>commons-text</artifactId><version>1.1</version></dependency>總結
以上是生活随笔為你收集整理的Java问题集锦--The type StringEscapeUtils is deprecated的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: shell脚本触发java程序传参数
- 下一篇: Flowable 数据库表结构 ACT_