Spring---Web MVC关于前台传值转换问题

Cannot convert value of type [java.lang.String] to required type [java.util.List].
问题在于:(String to Entity)
Post->types:0xxxx,1xxxx,2xxxx
 
Entity->List<Type> or Set<Type>
 
Type->必须要有有参构造函数存在才能被转换成功
例:
public Type(){}
public Type(String id){this.id=id}

posted on 2016-10-13 10:51  燕君临  阅读(148)  评论(0编辑  收藏  举报

导航