MyBatis: Configuration in Springboot

Source: Internet
Author: User

# # 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.