在我的Spring MVC应用程序中,我有以下对象。我正在尝试使用devtool
在我的应用程序中制作数据可视化。
在我的 Spring 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<ConsultationRequest, Long> {
}
问题在于当我加载我的应用程序时,我遇到了两个错误:
Unsuccessful: drop sequence hibernate_sequence
[36morg.hibernate.tool.hbm2ddl.SchemaExport Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:
然后当我打开
http://localhost:8080/h2-console/
我看不到表格。在引导过程中似乎没有生成表格。
create-drop
worked for POSTing data but not for loading fromdata.sql
during startup with H2 database. Theupdate
value worked the opposite (worked fro data.sql but not for POST data) and thenone
value was the same asupdate
- pamcevoy