数据库表名为:tb_topic
实体类名称为 TopicEntity
默认情况下 mybatis-plus会自动将实体类的类名首字母变成小写(topic_entity)当做数据库表名
实体指定表名
@Data
@TableName("tb_topic")
public class TopicEntity{
、、、、、、
}
配置文件配置表名前缀
mybatis-plus:
global-config:
db-config:
# 表名前缀
table-prefix: tb_