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

后端 未结 8 1594
难免孤独
难免孤独 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:13

    Register MultiPartFeature. In web.xml add to the Jersey servlet:

    
        jersey.config.server.provider.classnames
        org.glassfish.jersey.media.multipart.MultiPartFeature
    
    

提交回复
热议问题