Timeout of zookeeper request in Dubbo: configuration of mybatis + spring connection to mysql8.0.15

Time:2020-4-1

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 problem.

summary

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!

Recommended Today

Hive built-in function summary

1. Related help operation functions View built-in functions: Show functions; Display function details: desc function ABS; Display function extension information: desc function extended concat; 2. Learn the ultimate mental method of built-in function Step 1: carefully read all the functions of the show functions command to establish an overall understanding and impression Step 2: use […]