Error message:
org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class java.util.ArrayList
:
Http://www.cnblogs.com/hafiz/p/5812873.html offers a solution that seems to be a practice for many people, but I've tried to find out.
Later found to be the version of the issue: After the release of the Jackson version resolved.
PS: Added dependency again jackson-annotations
, as follows:
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>${jackson.version}</version> </dependency>
————————————————————
Initial release information:
Spring:5.0.7.release
jackson:2.8.11
Version information after the change:
Spring:5.0.7.release
jackson:2.9.5
"Spring" No converter found for return value of Type:class java.util.ArrayList