restful image upload exception
问题 I have a restful interface as shown below. I am trying to upload an image using jaxrs interface but I am faced with an error @POST @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Path("createUserphotoDirectory/{userid}/{serverName}") @Consumes("multipart/form-data") public String createUserDirectory(@PathParam("userid") Long userid, @PathParam("serverName") String serverName, MultipartFormDataInput input) { System.out.println("1"); photoService.createServerImages(userid