# # Mybatis Configuration mybatis.type-aliases-package=com.xfind.core.entity.xianyumybatis.mapper-locations=classpath:mapper/ *.xml# enables or disables caching for the global mapper. mybatis.configuration.cache-enabled=true# globally enables or disables lazy loading. When disabled, all associated objects are loaded immediately. mybatis.configuration.lazy-loading-enabled=true# when enabled, an object with lazy loading properties will fully load any property when it is called. Otherwise, each property will be loaded as needed. mybatis.configuration.aggressive-lazy-loading=true# whether to allow single SQL to return multiple datasets (depending on driver compatibility) default: truemybatis.configuration.multiple-result-sets-enabled=true# whether the alias of the column can be used (depending on driver compatibility) default: truemybatis.configuration.use-column-label=true# allows JDBC to generate primary keys. Drive support is required. If set to true, this setting enforces the generated primary key, and some drives are incompatible but can still be executed. default:falsemybatis.configuration.use-generated-keys=true# Specifies how MyBatis automatically maps the columns of the Data base table NONE: insinuate \u3000partial: Partial full: All mybatis.configuration.auto-mapping-behavior=partial# This is the default execution type (simple: easy; reuse: The executor may reuse the prepared statements statement ; Batch: The executor can repeat statements and bulk updates) mybatis.configuration.default-executor-type=simple# Use the Hump naming method to convert fields. mybatis.configuration.map-underscore-to-camel-case=true# setting the local cache scope session: There will be data sharing statemENT: statement scope (so there is no sharing of data) defalut:sessionmybatis.configuration.local-cache-scope=session# setting but when the JDBC type is empty, some drivers want to specify a value, Default:other, you do not need to specify a type when inserting a null value mybatis.configuration.jdbc-type-for-null=null# if the field is empty, the field is omitted, and you can add a configuration file Specifies that NULL is returned if the query data is null. Mybatis.configuration.call-setters-on-nulls=true
MyBatis: Configuration in Springboot