Home > Back-end >  Strives for the big help, thank you very much! @ NoSuchBeanDefinitionException problems associated w
Strives for the big help, thank you very much! @ NoSuchBeanDefinitionException problems associated w

Time:03-31

Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. CTG. Sysmgr. Sso. Server data. The dao. Sys. IPasswordRuleDao] found for the dependency: expected at further 1 bean which qualifies as autowire candidate for this dependency, the dependency annotations: {@ javax.mail. The annotation. The Resource (shareable=true, lookup=, name=, the description=, authenticationType=CONTAINER, type=class. Java lang. Object, mappedName=)}

According to the path to find the corresponding part of the

Using the @ resource
Local execution without exception, running on the server appeared this problem, will need jars are covered and no solution, also, every brother please help, thank you very much!

CodePudding user response:

The consequences of abnormal generally two, 1: don't find this bean, the dao is not left to spring management
2: spring managed bean instance, this interface has multiple instances;

CodePudding user response:

Look to the scan start class to the dao

CodePudding user response:

Have been added to the Spring managed

And the corresponding place with the

I tried the IPasswordDao also add
Online operation or error
Need to be separately added behind the @ the Resource (name='systemUserDao') and (name='passwordRuleDao')?

CodePudding user response:

The bosses to solve
  • Related