Distal traditional values (comprising the array of objects), the rear end of reception problems

Background: the original acquisition parameters need to add the collection array [Object {A}, {Object A}] type parameter, a rear end directly List <entity class A> receive error: the Failed to the instantiate [java.util.List ]: Specified class IS AN interface .

Try Method 1 : repackaging model type B (configuration parameter List <entity class A>) to receive, acquire data is null. (Transmission format to the front end value: { "id", "123 "; "userList", "[{user}, {user}, {user}]"})

Try Method 2 : * first target sequence into a string array, then put the object. Background Use of type String to receive *
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Published 15 original articles · won praise 0 · Views 299

Guess you like

Origin blog.csdn.net/sinat_15051577/article/details/105247908