SpringBoot+Dubbo(XML配置方式)


 

 

 

 

問題總結:

1.  客戶端訪問超時

com.alibaba.dubbo.remoting.TimeoutException: Waiting server-side response timeout. 
start time: 2019-07-01 23:12:02.396, end time: 2019-07-01 23:12:03.398, client elapsed: 1 ms, server elapsed: 1001 ms, timeout: 1000 ms, 

解決,在客戶端的配置文件中增加超時配置

<dubbo:consumer timeout="180000" retries="3" />

 

2.  啟動客戶端時報錯,8080端口被占用

***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.

解決,修改配置文件application.properties中默認的Tomcat端口為8081

server.port=8081

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM