1
我正在阅读关于REST API development with Spring-HATEOAS的文章,以及浏览project page and docs,但迄今为止只看到使用Java配置的示例代码。是否有与@EnableHypermediaSupport
等效的XML和文章示例中的配置?@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() { .. }
}
完成。谢谢(你的)信息。 – woemler 2014-10-10 13:23:39