Failed to convert value of type 'java.lang.String[]' to required type 'java.util.List';

记录下   报错信息如下

org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException: Failed to convert value of type 'java.lang.String[]' to required type 'java.util.List'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'com.service.product.domain.DistributorProduct': no matching editors or conversion strategy found
at org.springframework.web.method.annotation.

解决

controller  接受 List 对象集合  使用   

@RequestBody   不要使用@RequestParam


古人学问无遗力,少壮工夫老始成。 纸上得来终觉浅,绝知此事要躬行。
原文地址:https://www.cnblogs.com/wf-zhang/p/13092989.html