Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'societyAuthenticationProcessingFilter' defined in file [C:\Users\18533\Desktop\prize\dtsociety-framework\target\classes\com\yuxiang\dtsociety\framework\security\filter\SocietyAuthenticationProcessingFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'societyAuthenticationManager' defined in file [C:\Users\18533\Desktop\prize\dtsociety-framework\target\classes\com\yuxiang\dtsociety\framework\security\SocietyAuthenticationManager.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'societyAuthenticationProvider': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemSecurityConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysMenuDao' defined in file [C:\Users\18533\Desktop\prize\dtsociety-system\target\classes\com\yuxiang\dtsociety\system\dao\SysMenuDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'
时间: 2023-07-09 14:54:48 浏览: 366
Tess, if broken it is fix it you should
这个错误是由于依赖注入失败导致的。根据错误信息,首先需要检查 `societyAuthenticationProcessingFilter` 类的构造函数中的参数依赖是否满足。如果依赖注入失败,会抛出 `UnsatisfiedDependencyException` 异常。如果这个类中的依赖已经满足,那么需要检查 `societyAuthenticationManager` 类的构造函数中的参数依赖是否满足。同样地,如果依赖注入失败,会抛出 `UnsatisfiedDependencyException` 异常。
如果以上两个类的依赖注入都成功了,那么需要检查 `societyAuthenticationProvider` 类的依赖注入。如果这个类中的依赖注入失败,会抛出 `BeanCreationException` 异常,其中包含了依赖注入失败的原因。
最后,如果以上所有类的依赖注入都成功了,那么需要检查 `sysMenuDao` 类的依赖注入。如果这个类中的依赖注入失败,会抛出 `UnsatisfiedDependencyException` 异常,其中包含了依赖注入失败的原因。
总之,需要逐个检查每个类的依赖注入,找出依赖注入失败的原因,并进行修复。
阅读全文