版本是:3.1.2

# mapper文件的路径
mybatis-plus.mapper-locations=classpath*:/mapper/*Mapper.xml
# 是否检测mapper文件是否存在
mybatis-plus.check-config-location=true

感觉是不生效,因为能启动成功,但是执行xml的自定义语句的时候,就报

BindingException: Invalid bound statement (not found)
# 是否打印mybatis-plus的logo
mybatis-plus.global-config.banner=false

还是会打印logo

/**
     * SQL执行效率插件
     * 该插件只用于开发环境,不建议生产环境使用。
     */
    @Bean
    @Profile({"dev", "test"})// 设置 dev test 环境开启
    public PerformanceInterceptor performanceInterceptor() {
        return new PerformanceInterceptor()
                .setFormat(true)
                .setMaxTime(1000)
                .setWriteInLog(true);
    }

spring.profiles.active=dev 分析插件没启动,没看到有时间打印

Comment From: miemieYaho

自行排查

Comment From: WilliamShoww

似乎明白了,@ConditionalOnMissingBean 自己注入了factory 就会失效

Comment From: WilliamShoww

这问题有点坑啊,一旦自己注入了MybatisSqlSessionFactoryBean mybatis的全局配置和configuration配置都的失效

Comment From: winlans

今天有踩到这个坑, 都3.3.4.1了也没解决如何优化这个问题, 这自动配置配置了个寂寞,😄