org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.itheima.

问题 

org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.itheima.jdbc.Account]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.itheima.jdbc.Account.()

解决方法

实体类里面必须要有无参构造器

    public Account() {

    }

 

你可能感兴趣的:(javaweb,Java,web)