spring源码解析(2)-XmlBeanFactory


spring对XML的解析步骤:
1.获取XML的验证模式,DTD or XSD
2.加载XML文件,得到对应的Document,Document不是spring的类,它是jdk中的一个接口,包名是org.w3c.dom,代表整个HTML或XML的一个文档,他是整个文档树的根。
3.根据返回的Document注册Bean信息
posted @ 2021-09-14 09:02  Mars.wang  阅读(25)  评论(0编辑  收藏  举报