小编Anm*_*ngh的帖子

运行 Spring Boot 应用程序后发现 0 个 JPA 存储库接口

1. 用户记录

package auj.helpdesk.model;

package auj.helpdesk.model;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class UserRecord {
  @Id
  private int id;
  private String name;
  private String email;

//default conatructor    
  public UserRecord() {
  }

  public int getId() {
      return id;
  }

  public void setId(int id) {
      this.id = id;
  }

  public String getName() {
      return name;
  }

  public void setName(String name) {
      this.name = name;
  }

  public String getEmail() {
      return email;
  }

  public void setEmail(String email) {
      this.email = email;
  }
} …
Run Code Online (Sandbox Code Playgroud)

spring jpa spring-jdbc spring-data-jpa spring-boot

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

jpa ×1

spring ×1

spring-boot ×1

spring-data-jpa ×1

spring-jdbc ×1