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… First, let's configure the dao layer: Configure in db.properties. SqlMapConfig.xml configuration details Spring configuration file 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! You may also be interested in:
|
<<: Vue implements verification code countdown button
>>: How webpack implements static resource caching
Docker provides a way to automatically deploy sof...
Table of contents Preface 1. What are Mixins? 2. ...
1. Install tomcat8 with docker 1. Find the tomcat...
Table of contents Preface 1. Configure intranet D...
Table of contents How to flatten an array 1. Usin...
Table of contents Preface Enumerable properties I...
This article example shares the specific code of ...
How to solve the timeout problem when pip is used...
Here we mainly use spring-boot out of the box, wh...
What is CN2 line? CN2 stands for China Telecom Ne...
Using padding-top percentage can achieve a fixed ...
Uninstall MySQL 1. In the control panel, uninstal...
Preface "High Performance MySQL" mentio...
Table of contents 1. Specify different packaging ...
<br />Structure and hierarchy reduce complex...