spring-framework 使用了哪个 apache.xerces 版本?

huangapple go评论44阅读模式
英文:

How to find what apache.xerces version does spring-framework use?

问题

我正在使用Spring-framework v5.2.1.RELEASE。Spring bean工厂中的DefaultDocumentLoader.java文件包含以下代码:

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

我知道Spring使用apache.xerces.internal.parsers。但我不知道它使用的Xerces版本是多少?在Spring目录中,我执行了gradlew -q dependencies并搜索了依赖列表。我没有找到xerces或parsers。如何查找正在使用的xerces版本?

英文:

I am using Spring-framework v5.2.1.RELEASE. The DefaultDocumentLoader.java in spring bean factory has following code:

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

I know that spring uses apache.xerces.internal.parsers. But I don't know which version of Xerces does it use? In spring directory, I did gradlew -q dependencies and searched the dependency list.
I did not find xerces or parsers. How to figure out the xerces version in use?

答案1

得分: 2

It uses the JDK's default library for XML parser. So, it is not using any third party jar for parsing XML.
Basically, it is using the rt.jar of your jdk/../jre/lib directory for getting classes to parse XML.
The package it is using is: com.sun.org.apache.xerces.*

英文:

It uses the JDK's default library for XML parser. So, it is not using any third party jar for parsing XML.

Basically, it is using the rt.jar of your jdk/../jre/lib directory for getting classes to parse XML.

The package it is using is : com.sun.org.apache.xerces.*

huangapple
  • 本文由 发表于 2020年8月3日 13:23:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/63224137.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定