本機(jī)JUnit單元測(cè)試時(shí),調(diào)用部署在開(kāi)發(fā)環(huán)境(Centos7)的服務(wù)時(shí),報(bào)feign.RetryableException: connect timed out
直接訪(fǎng)問(wèn)服務(wù)地址時(shí),提示網(wǎng)絡(luò)無(wú)法訪(fǎng)問(wèn)
http://192.168.1.15:7002/comDictionary/getDictionaryById?dictionaryId=GIVE_LOGIN
發(fā)現(xiàn)端口沒(méi)有打開(kāi)。需要打開(kāi)linux防火墻的端口文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-842520.html
firewall-cmd --permanent --zone=public --add-port=7002/tcp
firewall-cmd --reload文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-842520.html
到了這里,關(guān)于Spring Cloud Feign調(diào)用異常:feign.RetryableException: connect timed out executing POST http://xxx的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!