The type StringEscapeUtils is deprecated”
之前一直使用commons-lang3-3.x.jar 这个jar包里面的 org.apache.commons.lang3.StringEscapeUtils 类来转义特殊字符,但是最近发现使用这个类会出现以下提示:

Multiple markers at this line- The type StringEscapeUtils is deprecated- The method escapeXml11(String) from the type StringEscapeUtils is deprecated

解决方法,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相关推荐

  1. 错误The type XXX is deprecated解决

    错误:The type XXX is deprecated 报如下错误: The type XXX is deprecated 将这些错误的级别调为Warning,步骤如下: 在MyEclipse中菜 ...

  2. (转)java.lang.RuntimeException: Missing type parameter

    java.lang.RuntimeException: Missing type parameter (2015-04-07 14:35:51)   分类: 技术 程序中用到了gson的new typ ...

  3. java.io.StreamCorruptedException: invalid type code: AC解决办法

    .java.io.StreamCorruptedException: invalid type code: AC解决办法 问题描述: 在向一个文件写入可序列化对象时,每次只想向文件的末尾添加一个可序列 ...

  4. java.io.StreamCorruptedException: invalid type code: AC错误的解决方法

    问题描述: 在向一个文件写入可序列化对象时,每次只想向文件的末尾添加一个可序列化的对象,于是使用了FileOutputStream(文件名,true)间接的构建了ObjectOutputStream流 ...

  5. inferred type_您最终可以使用var在Java中声明Inferred Type局部变量-这就是为什么它很棒...

    inferred type by javinpaul 由javinpaul 您最终可以使用var在Java中声明Inferred Type局部变量-这就是为什么它很棒 (You can finally ...

  6. dbz用connector入hana报错Invalid Java object for schema type INT64: class java.util.Long for field “null“

    最近需要将用户的mysql数据实时导入到hana中. 方案一为:mysql-cdc---->debezium-source-connector---->kafka----->debe ...

  7. java.lang.IllegalArgumentException: argument type mismatch

    问题: 19-Apr-2022 11:08:37.371 信息 [http-nio-8080-exec-5] com.alibaba.druid.pool.DruidDataSource.info { ...

  8. 解决 No converter found capable of converting from type [java.lang.String] to type ... 的问题

    目录 问题 分析问题 解决问题 问题 今天在项目启动类SuperJsonManagerApplication中,加上这行代码@MapperScan("com.**.mapper") ...

  9. Java注解annotation invalid type of annotation member

    文章目录 Java注解annotation : invalid type of annotation member 1.什么是invalid type of annotation member 2.哪 ...

最新文章

  1. SQL Server中执行正则表达式
  2. typescript get方法_使用 Typescript 构建类型安全的 Websocket 应用
  3. HDU4472_Count
  4. 神经网络 权重文件 大小_神经网络中如何处理过拟合的问题
  5. 【剑指 offer】—— 快速排序
  6. android 5.1一键root工具箱,一键root大师
  7. Python:企业微信批量发工资条工具 -应用消息发送模块
  8. 熟练使用Wireshark排除网络故障的方法
  9. 腾讯Bugly的前世今生
  10. Python生成二维码的操作方法
  11. 2023年 计算机考研 资料集(2022.02.03)
  12. 高德地图定位及导航开发流程
  13. 将csv导入python_将CSV导入Oracle表(Python)
  14. python绝技:运用python成为顶级黑客
  15. 求旋转体体积表面积时的dx,ds问题的简单解释
  16. python协程处理海量文件_Python使用asyncio和run-In-Executor线程池处理多个文件的同时下载,python,协程,加,runinexecutor...
  17. 芯片和集成电路的区别和联系
  18. 职场上个人价值的三个驱动力
  19. 三国群英传服务器未响应,《三国群英传2》近期服务器不稳定问题说明
  20. 知云文献翻译打不开_软件推荐|强大的翻译软件盘点

热门文章

  1. 上帝就在机器里:复杂算法背后隐藏的可怕现实
  2. mysql left join、right join、inner join、union、union all使用以及图解
  3. html中article、section、aside的区别与联系
  4. VS2013常用快捷键设置
  5. 如何打造一款极速数据湖分析引擎
  6. 阿里云 Serverless Kubernetes 的落地实践分享
  7. 教程系列——用模板快速上线一个HR 服务中心
  8. 揭秘政企安全加速解决方案的架构与应用场景实践
  9. 十年磨一剑!支付宝自研数据库OceanBase通过阿里云向全球开放
  10. 深度学习最佳实践系列——权重w初始化