How to write Jersey Multipart webapp, Tomcat Server

前端 未结 3 1196
广开言路
广开言路 2020-12-10 08:11

I\'ve been doing a lot of REST tutorials and enjoying them. Recently, I tried writing a jersey multipart webapp with Netbeans but I can\'t seem to because it seems something

3条回答
  •  一向
    一向 (楼主)
    2020-12-10 08:56

    The imports for these two are

    import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
    import org.glassfish.jersey.media.multipart.FormDataParam;
    

    If you use Maven, add this dependencies:

        
            org.glassfish.jersey.media
            jersey-media-multipart
            2.0
            jar
        
    

提交回复
热议问题