【spring boot hibernate】hibernate命名策略spring.jpa.hibernate.naming-strategy不起作用

对于

spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy

hibernate命名策略设置之后不起作用的处理方式:http://www.cnblogs.com/sxdcgaq8080/p/7890218.html,查看1.JPA hibernate命名策略即可

现在这里说一下原因,为什么不起作用:

  spring.jpa.hibernate.naming-strategy 设置命名策略,是hibernate4的命名策略,对于hibernate5是不起作用的。

查看自己项目中hibernate版本:

完整的spring boot配置可以查看:http://www.cnblogs.com/sxdcgaq8080/p/7724506.html


原文地址:https://www.cnblogs.com/sxdcgaq8080/p/7909969.html