2021-03-29 16:11:13.211 WARN 12936 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.xxxx.server.pojo.AdminRole".
2021-03-29 16:11:13.393 WARN 12936 --- [ main] c.b.m.core.metadata.TableInfoHelper : Can not find table primary key in Class: "com.xxxx.server.pojo.Admin".
2021-03-29 16:11:13.423 WARN 12936 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with 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.userdetails.UserDetailsService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2021-03-29 16:11:13.425 INFO 12936 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-03-29 16:11:13.433 INFO 12936 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-29 16:11:13.446 ERROR 12936 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field userDetailsService in com.xxxx.server.service.impl.AdminServiceImpl required a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' in your configuration.
Process finished with exit code 1
uj5u.com熱心網友回復:
@Serviceuj5u.com熱心網友回復:
UserDetailsService 這個類里面Autowired參考的找不到,像樓上說的,估計你的對應的serviceImpl類沒加上對應注解轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/270106.html
標籤:Web 開發
