mybatis-plus 3.5.x Cannot resolve method ‘setUseDeprecatedExecutor‘

use environment

mybatis-plus 3.5.1

Problem Description

Cannot resolve method ‘setUseDeprecatedExecutor’

Symbol: method setUseDeprecatedExecutor(boolean)
Location: variable configuration of type com.baomidou.mybatisplus.core.MybatisConfiguration

Solution

Comment out the following code in the configuration class

	/**
	 * 新的分页插件,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存出现问题(该属性会在旧插件移除后一同移除)
	 */
	@Bean
	public ConfigurationCustomizer configurationCustomizer() {
    
    
		return configuration -> configuration.setUseDeprecatedExecutor(false);
	}

Version 3.5.x and above have removed this field, and there is no need to
update the settings document. The configuration paging plug-in does not have the method setUseDeprecatedExecutor. The
new built-in paging plug-in useDeprecatedExecutor method is outdated and deprecated.

Guess you like

Origin blog.csdn.net/god_sword_/article/details/131507257