DELETE Request with Payload or Form Data causes Bad Request

后端 未结 2 1851
天命终不由人
天命终不由人 2021-01-22 05:14

I am building a RESTful Web Service with Java Jersey 2.17. The Client for it. I am developing with ExtJS 5.

My classes on the service

Main.java

          


        
2条回答
  •  余生分开走
    2021-01-22 06:04

    By using @Path on method level, you are overriding the defined @Path at class level.

    If you are using Apache Tomcat, use their CORS lib: Tomcat CORS filter. This way it is cleaner and covers all the exceptions as well.

提交回复
热议问题