baomidou / mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development
https://baomidou.com
Apache License 2.0
16.28k stars 4.29k forks source link

[错误报告]: 使用自定义PostInitTableInfoHandler报错 #6462

Closed diypyh closed 1 week ago

diypyh commented 1 week ago

确认

当前程序版本

3.5.7

问题描述

使用自定义的PostInitTableInfoHandler配置时,系统报错:

配置: mybatis-plus.global-config.post-init-table-info-handler=cc.kuaida.common.config.KuaidaPostInitTableInfoHandler

报错: Failed to bind properties under 'mybatis-plus.global-config.post-init-table-info-handler' to com.baomidou.mybatisplus.core.handlers.PostInitTableInfoHandler:

Property: mybatis-plus.global-config.post-init-table-info-handler
Value: "cc.kuaida.common.config.KuaidaPostInitTableInfoHandler.java"
Origin: class path resource [application.properties] - 51:57
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [com.baomidou.mybatisplus.core.handlers.PostInitTableInfoHandler]

没找到有这个配置的说明,请请如何实现?主要目的是想在扫描实体时,动态增加自定义属性

详细堆栈日志

No response

miemieYaho commented 1 week ago

bean注入不是yml配置