如何找到spring-framework使用的apache.xerces版本?

f45qwnt8  于 2022-10-30  发布在  Spring
关注(0)|答案(1)|浏览(84)

我使用的是Spring-framework v5.2.1.RELEASE。DefaultDocumentLoader.javaSpring Bean工厂中的www.example.com有以下代码:

import javax.xml.parsers.DocumentBuilder;
...
DocumentBuilder builder = createDocumentBuilder(factory, entityResolver, errorHandler);

我知道spring用的是apache.xerces.internal.parsers,但不知道用的是哪个版本的Xerces?在spring目录下,我做了gradlew -q dependencies,搜索了依赖列表,没有找到xerces和解析器,怎么知道用的是哪个版本的xerces?

drnojrws

drnojrws1#

  • 它使用JDK的默认库来解析XML。因此,它不使用任何第三方jar来解析XML。*

基本上,它使用jdk/../jre/lib目录中的rt.jar获取类来解析XML。
它正在使用的程序包是:com.sun.org.apache.xerces.*

相关问题