mybatis-config文件中标签的使用说明

  • 在mybaits中,常用的setting的的配置参数如下(如果不在配置文件中配置将使用默认值):

	<settings>
		
	  <setting name="cacheEnabled" value="true"/>
	  
	  <setting name="lazyLoadingEnabled" value="true"/>
	  	
	  <setting name="multipleResultSetsEnabled" value="true"/>
	  
	  <setting name="useColumnLabel" value="true"/>
	  
	  <setting name="useGeneratedKeys" value="false"/>
	  
	 
	  <setting name="autoMappingBehavior" value="PARTIAL"/>
	  
	  <setting name="autoMappingUnknownColumnBehavior" value="WARNING"/>
	 
	  <setting name="defaultExecutorType" value="SIMPLE"/>
	  
	  <setting name="defaultStatementTimeout" value="25"/>
	  
	  <setting name="defaultFetchSize" value="100"/>
	  
	  <setting name="safeRowBoundsEnabled" value="false"/>
	  
	  <setting name="mapUnderscoreToCamelCase" value="false"/>
	  
	  <setting name="localCacheScope" value="SESSION"/>
	  
	  <setting name="jdbcTypeForNull" value="OTHER"/>
	
	  <setting name="lazyLoadTriggerMethods" value="equals,clone,hashCode,toString"/>
	settings>

参考博客:https://blog.csdn.net/mqf163/article/details/52514015?utm_source=blogxgwz2

你可能感兴趣的:(Spring,Boot,Mybatis)