Exception in thread "main" org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'CustomerBean' defined in class path resource [Spring-Customer.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.yiibai.common.Customer]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.yiibai.common.Customer.
使用Spring注解時要提空默認的構造函數
提供默認的構造函數就好了。