hibernate.jdbc.time_zone = UTC ignored

后端 未结 3 2231
我寻月下人不归
我寻月下人不归 2021-02-15 13:02

Using set up as

  • Spring framework 5.0.2.RELEASE
  • Spring Security 5.0.0.RELEASE
  • Hibernate 5.2.11.Final

I followed spring boot &

3条回答
  •  伪装坚强ぢ
    2021-02-15 13:26

    Change this:

     properties.put("spring.jpa.properties.hibernate.jdbc.time_zone", 
                    environment.getRequiredProperty("spring.jpa.properties.hibernate.jdbc.time_zone"));
    

    to this:

     properties.put("hibernate.jdbc.time_zone", 
                environment.getRequiredProperty("spring.jpa.properties.hibernate.jdbc.time_zone"));
    

提交回复
热议问题