I’m going to review Java in these two days, So write a shopping mall project with Dubbo to practice, but on the first test of the card, start the provider service and the consumer service, but the request interface always reports the timeout error of the zookeeper request (Dubbo + zookeeper server repeatedly calls three times). After troubleshooting, my problem is the connection between the Dao layer and the database (and the provider does not report an error, I am also R It’s normal to omit 10000 words here. If you don’t have the problem of connecting to the database in Dao layer, this article may not help you very much). Dao layer uses mybatis + spring to connect mysql database version 8.0.15
It used to be mysql5. Later, when the computer broke down and reinstalled the system, it installed the latest version of mysql8. Unexpectedly, there was a problem, which wasted my whole night. Alas
Enter the main topic:
First, go to my Dao layer configuration:
Db.properties configuration on.
Configuration details of sqlmapconfig.xml on
Configuration file for spring on
The above is the timeout problem of zookeeper request in Dubbo introduced by Xiaobian to you: mybatis + spring is connected to mysql8.0.15 configuration, hoping to help you. If you have any questions, please leave a message to me, and Xiaobian will reply you in time. Thank you very much for your support of the developepaer website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!