1、不支持List做Controller的参数:
所以报错:org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.util.List]: Specified class is an interface
还得用复合类做参数:
public class UserImgEx implements Serializable{ private static final long serialVersionUID = 1423423432L; private List<UserImg> userImgs; public List<UserImg> getUserImgs() { return userImgs; } public void setUserImgs(List<UserImg> userImgs) { this.userImgs = userImgs; } }