我有一个工作正常的现有 mvc 应用程序,但是当我添加
<bean class="org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration"></bean>
启用 spring-data-rest 然后是通过提供的静态资源
<mvc:resources mapping="/resources/**" location="/resources/" />
无法访问。实际上我在请求静态资源时在日志中得到了这个
2013-06-06 15:33:21,035 DEBUG DispatcherServlet.doService(823) - DispatcherServlet with name 'eips-databus' processing GET request for [/eips-databus/scripts/easyUI/themes/gray/easyui_custom.css]
2013-06-06 15:33:21,035 DEBUG RequestMappingHandlerMapping.getHandlerInternal(226) - Looking up handler method for path /scripts/easyUI/themes/gray/easyui_custom.css
2013-06-06 15:33:21,035 DEBUG ExceptionHandlerExceptionResolver.resolveException(132) - Resolving exception from handler [null]: org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
有什么建议吗?提前致谢