Home >Java >javaTutorial >A brief discussion on objectFactory core architecture design

A brief discussion on objectFactory core architecture design

巴扎黑
巴扎黑Original
2017-06-13 11:21:172021browse

In the previous article "In-depth introduction to the Mybatis series (2)---Configuration introduction (mybatis source code)", through a simple analysis of the mybatis source code, we can see that in the mybatis configuration file, under the configuration root node, you can Configure properties, typeAliases, plugins, objectFactory, objectWrapperFactory, settings, environments, databaseIdProvider, typeHandlers, and mappers nodes. So this time, we will first introduce the properties node and environments node. In order to allow everyone to better read the mybatis source code, I will give you a simple example of how to use properties. 1 2