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

余生长醉 提交于 2021-02-08 08:52:50

问题


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:


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.*



来源:https://stackoverflow.com/questions/63224137/how-to-find-what-apache-xerces-version-does-spring-framework-use

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!