摘要: 前面讲到,Xml中的标签分为两种,一种是Spring默认标签,例如 <bean id="bookService" class="com.newcoder.api.BookService">,另一种是自定义标签,例如 <mvc:annotation-driven />,这一节,我们就来看看默认标签和自 阅读全文
posted @ 2019-10-23 17:58 莹狼 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 一、Xml 文件读取流程 1. 通过继承自 AbstractBeanDefinitionReader 中的方法,来使用 ResourceLoader 将资源文件路径转换为对应的 Resource 文件; 2. 通过 DocumentLoader 对 Resource 文件进行转换,将 Resourc 阅读全文
posted @ 2019-10-23 17:58 莹狼 阅读(257) 评论(0) 推荐(0) 编辑