Home > Back-end >  Couldn't find the Mapper is like? But in starting the classes I add the scan
Couldn't find the Mapper is like? But in starting the classes I add the scan

Time:03-30

The 16:11:13 2021-03-29. 12936-211 WARN [main] C.B.M.C ore. Metadata. TableInfoHelper: Can not find the table primary key in Class: "com. XXXX. Server. Pojos. AdminRole".
The 16:11:13 2021-03-29. 12936-393 WARN [main] C.B.M.C ore. Metadata. TableInfoHelper: Can not find the table primary key in Class: "com. XXXX. Server. Pojos. Admin".
The 16:11:13 2021-03-29. 12936-423 WARN [main] ConfigServletWebServerApplicationContext: Exception encountered during the context initialization - cancelling refresh attempt: org. Springframework. Beans. Factory. UnsatisfiedDependencyException: Error creating bean with the name 'adminServiceImpl: Unsatisfied dependency expressed through field' userDetailsService '; Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type 'org. Springframework. Security. Core. Populated userdetails. UserDetailsService' available: expected at further 1 bean which qualifies as autowire candidate. The Dependency annotations: {@ org. Springframework. Beans. Factory. The annotation, Autowired (required=true)}
The 16:11:13 2021-03-29. 12936-425 the INFO [main] o.a pache, catalina. Core. StandardService: Stopping the service (Tomcat)
The 2021-03-29 16:11:13. 12936-433 the INFO [main] ConditionEvaluationReportLoggingListener:

Error starting ApplicationContext. To display the the conditions report re - run your application with 'debug' enabled.
The 2021-03-29 16:11:13. ERROR 446-12936 [main] O.S.B.D.L oggingFailureAnalysisReporter:

* * * * * * * * * * * * * * * * * * * * * * * * * * *
The APPLICATION FAILED TO START
* * * * * * * * * * * * * * * * * * * * * * * * * * *

Description:

Field userDetailsService in com. XXXX. Server service. Impl. AdminServiceImpl required a bean of type 'org. Springframework. Security. Core. Populated userdetails. UserDetailsService' that could not be found.

The injection point has The following annotations:
- the @ org. Springframework. Beans. Factory. The annotation. Autowired (required=true)


Action:

Consider defining a bean of type 'org. Springframework. Security. Core. Populated userdetails. UserDetailsService' in your configuration.


The Process finished with exit code 1

CodePudding user response:

@Service

CodePudding user response:

UserDetailsService Autowired references can't find inside the class, as the upstairs said, estimate your corresponding serviceImpl class didn't add the corresponding annotations
  • Related