Error:
Cause: When building the project, the SPRINGMVC default is that no object is converted to a JSON converter and needs to be manually added to the Jackson dependency.
Steps to resolve:
1, add Jackson to rely on Pom.xml
<!--Jaskson-- <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.5.4</version> </dependency > <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactid >jackson-databind</artifactId> <version>2.5.4</version> </dependency>
2. Increase in Springmvc.xml
<mvc:annotation-driven> <mvc:message-converters> class= " Org.springframework.http.converter.StringHttpMessageConverter "/> class=" Org.springframework.http.converter.json.MappingJackson2HttpMessageConverter "/> </mvc: Message-converters></mvc:annotation-driven>
Then the problem is solved
170616. Resolve Java.lang.IllegalArgumentException:No Converter found for return value of Type:class java.util.ArrayList