spring-boot项目整合:mybatis-plus
实体类为User
数据库表名为:tb_user
所以mybatis-plus 自动映射失败
解决办法:
在application.yml中配置表前缀:
mybatis-plus:
global-config:
db-config:
table-prefix: tb_
spring-boot项目整合:mybatis-plus
实体类为User
数据库表名为:tb_user
所以mybatis-plus 自动映射失败
解决办法:
在application.yml中配置表前缀:
mybatis-plus:
global-config:
db-config:
table-prefix: tb_