英文:
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.*
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论