Spring Boot JPA的Column Table 注解命名字段无效
@Table(name = "OrderInfo") @Entity public class OrderInfo { @Id @GeneratedValue private Long id; @Column(name = "timeReg") private String timeReg;
配置后生成Order_info 表,不生成OrderInfo表,加入以下配置即可
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl