spring如何读取XML配置文件。 [英] How spring reads XML config files.

查看:146
本文介绍了spring如何读取XML配置文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring Container如何读取xml文件并将其转换为Object Graph。我已经读过marshaller的工作原理了。但我还没有在我的项目中使用过一个Spring仍设法从xml文件中读取bean 。那么Spring如何解析xml文件。



你也可以在Spring中命名一些解析器。问题在采访中提出。请帮助



我尝试了什么:



尝试使用Google搜索相同但却无法获得太多资源。他们每个人都在说如何通过使用Marshaller将xml转换为Object图。

How does Spring Container reads xml files and translates it into an Object Graph. I have read how marshaller works. But I haven't used one in my project still Spring manages to read the beans from the xml files. So how does Spring parses xml files.

Also can you name some of the parsers in Spring. Question asked in interview. Kindly help

What I have tried:

Tried googling out for the same but could not get much resource. Each one of them is saying how to convert an xml to Object graph through the use of Marshaller.

推荐答案

请参考使用O / X MappersMarshalling XML [ ^ ]


这篇关于spring如何读取XML配置文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆