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
Together with jersey-media-multipart dependency, instead of Application (see below) you can configure ResourceConfig:
@ApplicationPath("/")
public class AppConfig extends ResourceConfig {
public AppConfig() {
packages("packages.to.scan");
register(MultiPartFeature.class);
}
}
or Jersey REST configuration in web.xml:
jersey.config.server.provider.classnames
org.glassfish.jersey.media.multipart.MultiPartFeature