在我的春季mvc应用程序中,我有以下对象.我试图在我的应用程序中使用devtool来显示数据.
@Entity
@Data
public class ConsultationRequest {
@Id
@GeneratedValue
private Long id;
private String name;
private String email;
private String purpose;
private String programme;
private int year;
private String language;
private String comments;
@Enumerated(EnumType.STRING)
private ConsultationStatus status;
}
然后我使用jpa来制作实体:
@Repository
public interface ConsultationRequestRepository extends JpaRepository {
}
问题是当我加载我的应用程序时,我遇到了2个错误:
Unsuccessful: drop sequence hibernate_sequence
[36morg.hibernate.tool.hbm2ddl.SchemaExport Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:
然后,当我打开
http://localhost:8080/h2-console/
我看不到桌子.
似乎在启动过程中,表没有制作.