问题是,当我在我的spring-data-rest-core和spring-data-rest-webmvc中添加依赖项时,应用程序不再工作了。当我点击http://localhost:8080/greeting时,会得到以下错误:This application has no explicit mappingTue Aug 12 12:27:28 CEST 2014
There was an unexpecte
我已经实现了一个SpringRest Controller,它使用StreamingResponseBody回传大型文件。但是,这些文件来自另一个系统,在流回这些文件时可能会出错。我正在尝试设置响应httpstatus和错误消息,但总是收到http status 406。在返回StreamingResponseBody时,处理错误/异常的正确方法是什么?