报错:Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema management to JDBC target [alter table sys_config add column key varchar(255)]
当时启动后总是报错
@Entity @Table(name = "sys_config") public class SysConfigE implements Serializable { private static final long serialVersionUID = 1L; private Long id; private String key; private String nameValue; private String status; private String remark;
主要原因是
字段 key 在sql里面属于关键字,将key改成别的就可以了