spring-boot-samples icon indicating copy to clipboard operation
spring-boot-samples copied to clipboard

use Spring 2.0.3 write an example

Open jiangjihui opened this issue 7 years ago • 6 comments

Hello, Nice work. I want to know how to use integrate JPA in Spring Boot, using Hibernate as JPA implementation and MySQL as database in SpringBoot 2.0.3,can you write an example for it?

ps:it may have a great differences to use SpringBoot 2.0.3.

jiangjihui avatar Jul 26 '18 07:07 jiangjihui

+1 I also can't get it to work :(

ghost avatar Aug 23 '18 14:08 ghost

+1 Same problem. Hibernate Search 5.7.x complains when search is performed. Switching to 5.8.x - not able to start that project.

raszkiewicz avatar Mar 26 '20 19:03 raszkiewicz

Which version of MySQL are you using?

muratia avatar Mar 26 '20 19:03 muratia

@muratia 8.0.15

raszkiewicz avatar Mar 26 '20 19:03 raszkiewicz

Initially, the connection string must have all these parameters jdbc:mysql://localhost:3306/database?verifyServerCertificate=false&useSSL=false&requireSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC&allowPublicKeyRetrieval=true

muratia avatar Mar 26 '20 19:03 muratia

I have it like ?autoReconnect=true&characterEncoding=UTF-8&verifyServerCertificate=false&useSSL=false&requireSSL=false

It works fine for 5.7.x when creating indexes but then it complains when does the search. I have found that 5.7.x is not compatible with SpringBoot 2.2 Hibernate ORM version so switched to 5.8.x but that will not start at all.

raszkiewicz avatar Mar 26 '20 19:03 raszkiewicz