请教各位:我想mybatis-plus的@TableName注解的schema值是从application.yml读取的,即:
@TableName(value="XXXXX",schema="${xxx.schema}")
但运行时报错:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found. Available parameters are [ew, param1]
只能说 可以实现,但是你估计歇菜,得知道spring 启动的一些知识,和mybatis plus的basemapper的原理;默认构造表名是




com.baomidou.mybatisplus.core.metadata.TableInfoHelper.initTableName方法,需要自己去改造,
动态数据源更合适你