Zookeeper request timeout problem in dubbo: configuration of mybatis+spring connecting to mysql8.0.15

Zookeeper request timeout problem in dubbo: configuration of mybatis+spring connecting to mysql8.0.15

I am going to review Java these two days, so I wrote a shopping mall project using dubbo to practice, but I got stuck on the first test. I started the provider service and the consumer service, but the request interface always reported a zookeeper request timeout error (dubbo+zookeeper server repeated the call three times). After investigation, my problem lies in the connection between the dao layer and the database (and the provider side did not report an error, I am also R... Ten thousand words are omitted here, everything else is normal. If your problem is not in the dao layer connecting to the database, this article may not be of much help to you). The dao layer uses mybatis+spring to connect to the mysql database version 8.0.15

I used mysql5 originally, but then my computer broke down and I had to reinstall the system. I installed the latest version of mysql8, but I didn’t expect that there would be problems. I wasted an entire night. Sigh…
Let’s get to the point:

First, let's configure the dao layer:


insert image description here

insert image description here

Configure in db.properties.

insert image description here

SqlMapConfig.xml configuration details

insert image description here

Spring configuration file

insert image description here

The above is the problem.

Summarize

The above is the zookeeper request timeout problem in dubbo introduced by the editor: the configuration of mybatis+spring connecting to mysql8.0.15. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Detailed explanation of dubbo configuration file (recommended)
  • Dubbo service configuration method based on annotations (example explanation)
  • Quickly learn Dubbo's configuration environment and related configurations

<<:  Vue implements verification code countdown button

>>:  How webpack implements static resource caching

Recommend

VPS builds offline download server (post-network disk era)

motivation Due to learning needs, I purchased a v...

Nginx operation and maintenance domain name verification method example

When configuring the interface domain name, each ...

CSS makes tips boxes, bubble boxes, and triangles

Sometimes our pages will need some prompt boxes o...

How to display percentage and the first few percent in MySQL

Table of contents Require Implementation Code dat...

Vue custom components use event modifiers to step on the pit record

Preface Today, when I was using a self-written co...

Common JavaScript memory errors and solutions

Table of contents 1. Timer monitoring 2. Event mo...

How to quickly delete all tables in MySQL without deleting the database

This article uses an example to describe how to q...

How to configure Jupyter notebook in Docker container

Jupyter notebook is configured under the docker c...

Vue implements small search function

This article example shares the specific code of ...

Detailed explanation of destructuring assignment syntax in Javascript

Preface The "destructuring assignment syntax...

Tutorial on building file sharing service Samba under CentOS6.5

Samba Services: This content is for reference of ...

Analysis of log files in the tomcat logs directory (summary)

Each time tomcat is started, the following log fi...

SVG+CSS3 to achieve a dynamic wave effect

A vector wave <svg viewBox="0 0 560 20&qu...

MySQL/MariaDB Root Password Reset Tutorial

Preface Forgotten passwords are a problem we ofte...