Answer the question
In order to leave comments, you need to log in
Using JSON in Spring MVC?
Need advice on using org.springframework.web.servlet.view.json.MappingJacksonJsonView to render model to JSON format. I re-read a bunch of articles and forum posts, but I still couldn’t attach this mapping to Spring - after deployment, the application crashes with an exception:
Сould not instantiate bean class [org.springframework.web.servlet.view.json.MappingJacksonJsonView]: Constructor threw exception; nested exception is java.lang.VerifyError: Cannot inherit from final class<br/>
Answer the question
In order to leave comments, you need to log in
Add to pom.xml
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.7.1</version>
</dependency>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question