当前位置:网站首页>9.2.1 xmlconfigbuilder constructor (xmlconfigbuilder analysis) - SSM in depth analysis and project practice

9.2.1 xmlconfigbuilder constructor (xmlconfigbuilder analysis) - SSM in depth analysis and project practice

2020-11-06 01:13:00 Memory

All the source code in the project can be found in the linked repository :https://github.com/chenhaoxiang/uifuture-ssm

9.2 XMLConfigBuilder analysis

Here is a brief introduction to XMLConfigBuilder The role of classes .

  • analysis XML File stream , Generate XML The description information of the element node in the file (XNode object - XML Of documents Java Describe objects ).

  • adopt root The root node XNode object , Resolve the... Of each child node XNode object , Get properties or child node properties , Generate key value pairs . stay XMLConfigBuilder Create and initialize Configuration, And set the key value pair of the node to Configuration In the example .

in addition , In a more simple way Configuration, Equivalent to data class , It contains almost all of MyBatis Configuration information . You can see Configuration Class source code .Configuration There are a lot of Map, Configuration information, etc .

9.2.1 XMLConfigBuilder Constructors

XMLConfigBuilder To read XML file , Analysis section

版权声明
本文为[Memory]所创,转载请带上原文链接,感谢