Translate

HTTP 405 Method Not Allowed etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
HTTP 405 Method Not Allowed etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

27 Temmuz 2016 Çarşamba

HTTP 405 Method Not Allowed solution

  HTTP 405 Method Not Allowed

Firstly be sure you have method  (GET/POST/PUT/DELETE)which you will make a request.

Other solution :I have faced with below

org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.5 | No operation matching request path "/cxf/api/company/2" is found, Relative Path: /2, HTTP Method: PUT, ContentType: application/json;charset=UTF-8, Accept: application/json,text/plain,*/*,. Please enable FINE/TRACE log level for more details.2016-07-27 17:09:36,559 | WARN  | qtp61968019-966  | WebApplicationExceptionMapper    | 108 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.1.5 | javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed
at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)
at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:162)


the solution:I figured it out that is I put @PathParam("id") Long id inside of override method as a parameter .This just should be inside interface not the implementation.





Bu Blogda Ara