XML mapping configuration file
The XML configuration file for MyBatis contains settings and attribute information that affect mybatis behavior very deeply. The advanced hierarchy of XML documents is as follows:
Properties
Settings
These and other important tweaks, he modifies the way MyBatis behaves at runtime. The following table describes the settings information, their meaning and default values:
Typealiases
A type alias is a short name that is named for the Java type. He is related to the configuration of XML and is used only to reduce the redundant parts of the class fully qualified name. For example:
Typehandlers
Whether MyBatis sets a parameter in a preprocessing statement or fetches a value from the result set, the type processor is used to convert the obtained value to the Java type in the appropriate way. The following table describes the default type processor.
You can override the type processor or create your own type processor to handle unsupported or nonstandard types. To do this, simply implement the Typehander interface (Org.mybatis.type). The new type processor is then mapped to the Java type, and there is an optional JDBC type. For example:
Objectfactory
MyBatis each time a new instance of the result object is created, he uses a objectfactory instance to complete. If the parameter mapping exists, the default objectfacotry does more work than instantiating the target class using the default constructor method or the constructor with parameters, and if you want to rewrite objectfacotry, you can create your own. Like what:
Plugins
Environments
TRansactionmanager
XML mapping configuration file in MyBatis