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

A quick guide to Docker

Docker provides a way to automatically deploy sof...

Vue detailed explanation of mixins usage

Table of contents Preface 1. What are Mixins? 2. ...

How to install tomcat8 in docker

1. Install tomcat8 with docker 1. Find the tomcat...

Detailed steps to build an independent mail server on Centos7.9

Table of contents Preface 1. Configure intranet D...

js implements array flattening

Table of contents How to flatten an array 1. Usin...

Detailed discussion of the differences between loops in JavaScript

Table of contents Preface Enumerable properties I...

vue+ts realizes the effect of element mouse drag

This article example shares the specific code of ...

How to solve the timeout during pip operation in Linux

How to solve the timeout problem when pip is used...

Example of how to deploy Spring Boot using Docker

Here we mainly use spring-boot out of the box, wh...

What do CN2, GIA, CIA, BGP and IPLC mean?

What is CN2 line? CN2 stands for China Telecom Ne...

SQL Optimization Tutorial: IN and RANGE Queries

Preface "High Performance MySQL" mentio...

An example of how to optimize a project after the Vue project is completed

Table of contents 1. Specify different packaging ...

Pagination Examples and Good Practices

<br />Structure and hierarchy reduce complex...