org.springframework.beans.BeanInstantiationException: Failed to instantiate cn.mvc.entity.User: No default constructor found; nested exception is java.lang.NoSuchMethodException: cn.mvc.entity.User.<init>()
添加一个无参的构造器即可!
java
public User() {
}
