1.@Data
注解在类上,自动写好实例的set,get,hashCode,toString等方法。
2.@TableName
实现实体类和对应的数据库表名相映射。
3.@TableField,@TableId
实现数据库表属性和某一实例对象(名字不一样或者不是驼峰命名关系)相关联。
4.@DateTimeFormat
对时间类型的属性标注格式化注解
5.@Service
标注该层为service层
1.@Data
注解在类上,自动写好实例的set,get,hashCode,toString等方法。
2.@TableName
实现实体类和对应的数据库表名相映射。
3.@TableField,@TableId
实现数据库表属性和某一实例对象(名字不一样或者不是驼峰命名关系)相关联。
4.@DateTimeFormat
对时间类型的属性标注格式化注解
5.@Service
标注该层为service层