MULTIPART_FORM_DATA: No injection source found for a parameter of type public javax.ws.rs.core.Response

后端 未结 8 1668
难免孤独
难免孤独 2020-11-22 08:52

I am using Jersey based restful Service implementation strategy to build a service which will be used to upload files. My service class name is : UploadFileService.java (See

8条回答
  •  佛祖请我去吃肉
    2020-11-22 09:26

    I too got the same exception.I did the following changes in web.xml

    
                jersey.config.server.provider.classnames
                org.glassfish.jersey.filter.LoggingFilter;org.glassfish.jersey.moxy.json.MoxyFeature;org.glassfish.jersey.media.multipart.MultiPartFeature
            
    

    and changed jersey 2.7 to 2.9 .I do not know what change of this 2 has solved the issue.

提交回复
热议问题