remove @springbootTest
Change-Id: Iea186ebd05298d2804b7c6b418581e2cc935fab7
diff --git a/src/main/java/com/example/g8backend/entity/User.java b/src/main/java/com/example/g8backend/entity/User.java
index f367a4b..8e28628 100644
--- a/src/main/java/com/example/g8backend/entity/User.java
+++ b/src/main/java/com/example/g8backend/entity/User.java
@@ -1,28 +1,25 @@
package com.example.g8backend.entity;
import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
-@TableName("user") // 指定数据库表名
+@TableName("users")
public class User {
@TableId(type = IdType.AUTO)
- private Long id;
+ private Long userId;
- @TableField
- private String name;
-
- @TableField
+ private String password;
+ private String userName;
private String email;
@Override
public String toString() {
return "User{" +
- "id=" + id +
- ", name='" + name + '\'' +
+ "id=" + userId +
+ ", name='" + userName + '\'' +
", email='" + email + '\'' +
'}';
}