【Feign调用异常】org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported

An abnormal scene description

Obviously post request, why after reaching the server into a get request

2019-05-30 18:07:17.055 [http-nio-10650-exec-4] ERROR c.x.xcauto.common.controller.BaseControllerAdvice - 检测到未捕捉异常:IP:192.168.128.1 invoke url:http://172.17.244.170:10650/stock/valid/num/v1 Exception:public class org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported
    at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.handleNoMatch(RequestMappingInfoHandlerMapping.java:197)
    at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:376)
    at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal (AbstractHandlerMethodMapping.java: 316 ) 
    at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal (AbstractHandlerMethodMapping.java: 62)

 

Second, the solution

Http request will be replaced https request

Guess you like

Origin www.cnblogs.com/756623607-zhang/p/10960792.html