@FormDataParam throws SEVERE: Missing dependency

前端 未结 3 1771
面向向阳花
面向向阳花 2021-01-15 11:20

I am using Jersey to upload file. I defined the method:

@POST
@Path(\"/upload\")
@Consumes(\"multipart/form-data\")
public Collection uploadIm         


        
3条回答
  •  深忆病人
    2021-01-15 11:41

    You need to add Maven dependencies related to Multipart handling.

         
            org.jvnet
            mimepull
            1.6
        
         
            com.sun.jersey.contribs
            jersey-multipart
            1.18.1
        
    

    If you need check http://mvnrepository.com/ for the versions of the dependencies for your Jersey version.

提交回复
热议问题