我正在尝试在我的 Spring-Boot 应用程序中向 FeignClient 发出请求,https://pixabay.com/api?key=17079440-d2facf535011df5d60e5ccfe2&q=Playstation%203&image_type=photo
但已抛出此异常:
2020-06-17 21:10:24.730 ERROR 14008 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException: [301 Moved Permanently] during [GET] to [https://pixabay.com/api?key=17079440-d2facf535011df5d60e5ccfe2&q=Playstation%203&image_type=photo] [PixabayClient#getImageUrl(String,String,String)]
我已经尝试通过邮递员和浏览器发出请求,并且响应正常返回:(
这是我的 FeignClient 课程:https ://pastebin.com/MFhFs5um
还有我的 pom.xml:https ://pastebin.com/4XXjYkyE