Interface to perform normal, abnormal returns 500, the exception details to the newspaper front-end server:
org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class java.util.ArrayList
Not go into the reasons, perhaps $ .ajax function data type received at the front end of JSON, the service can not be converted into JSON ArrayList class.
Write down the temporary solution - adding a dependency JSON family bucket in the project are as follows:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.9</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.9.9</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.9.9</version> </dependency>