@TableName是表名注解。里面有一些属性。
一般这个属性用的比较多。映射实体类和表名
@TableName(value = "table_name")
@TableName(value = "table_name" autoResultMap = true|false)
@TableId:作用是指定实体类属性和表中的主键字段对应
其余的请查看官网:https://mp.baomidou.com/guide/annotation.html#sqlparser
@TableName是表名注解。里面有一些属性。
一般这个属性用的比较多。映射实体类和表名
@TableName(value = "table_name")
@TableName(value = "table_name" autoResultMap = true|false)
@TableId:作用是指定实体类属性和表中的主键字段对应
其余的请查看官网:https://mp.baomidou.com/guide/annotation.html#sqlparser