警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uaserService' defined in class path resource [ApplicationContextTest.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiat
当报上面的错误的时候,我们可以在加上对应的无参构造
上面就是运行成功的代码