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

  

posted @ 2018-08-26 20:40  glory.xu  阅读(2343)  评论(0编辑  收藏  举报