XML Configuration Equivalent of @EnableHypermediaSupport

帅比萌擦擦* 提交于 2019-12-11 07:19:13

问题


I was reading through an article on REST API development with Spring-HATEOAS, as well as browsing the project page and docs, but have so far only seen example code using Java configuration. Is there an XML equivalent to @EnableHypermediaSupport and the configuration seen in the article's example?

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

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

    @Bean
    public MultipartResolver multipartResolver() { .. }

} 

回答1:


There currently is none. Feel free to open a ticket in the issue tracker.



来源:https://stackoverflow.com/questions/26244760/xml-configuration-equivalent-of-enablehypermediasupport

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!