2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
I encountered a problem when working on the Grain Mall project:
P91 talks about how, when you publish a product on the front-end page and click to save the product, the remote call service times out: java.net.SocketTimeoutException: Read timed out
Solution:
In the product's yml configuration file, add the timeout for remote call services
- feign:
- hystrix:
- enabled: true
- client:
- config:
- gulimall-coupon:
- connectTimeout: 5000
- readTimeout: 5000
After adding, restart the product application, and then re-initiate the request and find that it is successful