0
Ich benutze Stormpath + Spring MVC. Ich habe ein Problem, wenn ich versuche, eine Anfrage mit Dateianhängen zu senden.Stormpath multipartFile
public ModelAndView insert(@RequestParam("files") MultipartFile files[], @Valid @ModelAttribute("ordemServico") OrdemServico ordemServico,
BindingResult result, Model model) throws IOException {
Aber ich habe diesen Fehler unter ...
2017-03-03 17:00:34,395 ERROR [qtp504672873-22] c.s.s.c.StormpathAuthenticationEntryPoint Couldn't resolve content type
com.stormpath.sdk.servlet.http.UnresolvedMediaTypeException: No MediaType could be resolved for this request (text/css,*/*;q=0.1) and the configured producesMediaTypes settings (application/json,text/html). The ContentNegotiationResolver was not able to come up with a valid MediaType.
at com.stormpath.sdk.servlet.filter.DefaultContentNegotiationResolver.getContentType(DefaultContentNegotiationResolver.java:59)
Und seine zeigt eine Zugriff verweigert Fehler ...
Wie dieses Problem zu lösen? Vielen Dank.