We are using the 5.2 version of broadleaf with spring-boot (using the tomcat connection pool) and mysql.
If there is no activity for a while, for example over night, it looses the connection and can't reestablish it. I have been reading about it and was aiming the use spring.datasource.tomcat.test-on-borrow and spring.datasource.validation-query properties but they don't seem to stick.
We have set up our other database properties in common-shared.properties like:
database.user=...
database.password=...
database.driver=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost:3306/broadleaf?useUnicode=true&characterEncoding=utf8
What is the correct way to handle this problem with broadleaf?