Jersey (JAX-RS) single file upload example
Jersey provides an easy mechanism to let clients upload files to the server. In this tutorial, we will learn a single file upload to Jersey (JAX-RS) endpoint. 1. Include Jersey media multipart dependency in Gradle File: build.gradle (snippet) ….dependencies { compile ‘org.springframework.boot:spring-boot-starter-web’, ‘org.springframework.boot:spring-boot-starter-jersey’, ‘org.glassfish.jersey.media:jersey-media-multipart:2.+’, ‘org.springframework.boot:spring-boot-starter-jdbc’, ‘org.springframework.boot:spring-boot-devtools’, ‘com.h2database:h2:1.4.+’ testCompile ‘org.springframework.boot:spring-boot-starter-test’}…. Jersey provides multipart form data support …