Last active
August 22, 2017 10:27
-
-
Save sw-samuraj/e1b0720fa61d8da2387996d86c690b28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@ComponentScan("cz.swsamuraj.wicketspring") | |
public class SpringRestConfiguration { | |
@Bean | |
public AnnotationMethodHandlerAdapter annotationMethodHandlerAdapter() { | |
AnnotationMethodHandlerAdapter adapter = new AnnotationMethodHandlerAdapter(); | |
HttpMessageConverter<?>[] converters = { new MappingJackson2HttpMessageConverter()}; | |
adapter.setMessageConverters(converters); | |
return adapter; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment