I got the job after removing Jackson 1. *, replacing it with 2.4.4 (JAXRS), which will import all other dependencies, jackson-core, jackson-databind and jackson-annotations.
Removed
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.13</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.13</version> </dependency>
Added
<dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-base</artifactId> <version>2.4.4</version> </dependency>
http://www.codingpedia.org/ama/jquery-ui-autocomplete-not-working-in-spring-4-1/
and in xml servlet
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" /> <bean id="contentNegotiationManager" class="org.springframework.web.accept.ContentNegotiationManagerFactoryBean"> <property name="favorPathExtension" value="false" /> <property name="favorParameter" value="true" /> <property name="mediaTypes" > <value> json=application/json xml=application/xml </value> </property> </bean>
if jackson annotation is imported into class files, it should also be replaced
Removed
import org.codehaus.jackson.annotate.JsonIgnoreProperties
Added
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
Alias Eldhose Dec 12 '14 at 14:28 2014-12-12 14:28
source share