1

我正在阅读一篇关于使用 Spring-HATEOAS 开发 REST API的文章,以及浏览项目页面和文档,但到目前为止只看到了使用 Java 配置的示例代码。是否有@EnableHypermediaSupport与文章示例中看到的配置等效的 XML 和配置?

@Configuration
@ComponentScan
@EnableWebMvc
@EnableHypermediaSupport
class WebMvcConfiguration extends WebMvcConfigurationSupport {

    @Override
    public void configureContentNegotiation(ContentNegotiationConfigurer c) {
        c.defaultContentType(MediaType.APPLICATION_JSON);
    }

    @Bean
    public MultipartResolver multipartResolver() { .. }

} 
4

1 回答 1

2

目前没有。随意在问题跟踪器中打开一张票。

于 2014-10-10T10:33:05.343 回答