spring源码解析(2)-XmlBeanFactory


spring对XML的解析步骤:
1.获取XML的验证模式,DTD or XSD
2.加载XML文件,得到对应的Document,Document不是spring的类,它是jdk中的一个接口,包名是org.w3c.dom,代表整个HTML或XML的一个文档,他是整个文档树的根。
3.根据返回的Document注册Bean信息
原文地址:https://www.cnblogs.com/wangbin2188/p/15266000.html