Springboot using the JPA times error:
Only delete the Times wrong,
"Data": "Delete failed because: Could not open JPA Entitymanager for transaction; Nested exception is javax.persistence.PersistenceException: Com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications Link failure\n\nthe last packet successfully Received from the server was 190,731 milliseconds ago. The last packet sent successfully to the server was 4 milliseconds ago. ",
"Success": false
Solution: Added configuration: &failoverreadonly=false
For the Chinese environment, the MySQL connection URL can usually be set to:
jdbc:mysql://localhost:3306/test?user=root&password=&useunicode=true&characterencoding=gbk& Autoreconnect=true&failoverreadonly=false
In the case of using a database connection pool, it is best to set the following two parameters:
Autoreconnect=true&failoverreadonly=false
Springboot using JPA to remove feature SQL error resolution