From ece5d54a8e18ae22de3a137cfdae54911ab2bdf5 Mon Sep 17 00:00:00 2001 From: Bastien Krettly Date: Tue, 2 Jun 2020 10:40:05 +0200 Subject: [PATCH] Few modifications in order to be up to date with current standards --- .../src/main/resources/application.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-mysql-springdatajpa-hibernate/src/main/resources/application.properties b/spring-boot-mysql-springdatajpa-hibernate/src/main/resources/application.properties index e5d4505..978c5a5 100644 --- a/spring-boot-mysql-springdatajpa-hibernate/src/main/resources/application.properties +++ b/spring-boot-mysql-springdatajpa-hibernate/src/main/resources/application.properties @@ -12,8 +12,8 @@ spring.datasource.username = root spring.datasource.password = root # Keep the connection alive if idle for a long time (needed in production) -spring.datasource.testWhileIdle = true -spring.datasource.validationQuery = SELECT 1 +spring.datasource.tomcat.test-while-idle = true +spring.datasource.tomcat.validation-query = SELECT 1 # =============================== # = JPA / HIBERNATE @@ -31,7 +31,7 @@ spring.jpa.show-sql = true spring.jpa.hibernate.ddl-auto = update # Naming strategy -spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy +spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl # Allows Hibernate to generate SQL optimized for a particular DBMS spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect