2020
10-10
10-10
mybatis-plus 表名添加前缀的实现方法
1、使用mybatis-plus自身的查询构造去,只需要在全局配置中添加如下配置mybatis-plus:mapper-locations:classpath:mappers/*Mapper.xml#mapper映射文件global-config:db-config:table-prefix:tr_2、自定义sql语句中添加表名前缀在yml文件中添加如下配置mybatis-plus:mapper-locations:classpath:mappers/*Mapper.xml#mapper映射文件global-config:db-config:table-prefix:tr_configuration-properties:...
继续阅读 >