Error creating bean with name 'connectionFactoryLocator' defined in class 启动不了
来源:5-4 开发QQ登录(中)

eddie_k2
2018-08-19
2018-08-19 12:16:17.580 INFO 7008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'validateCodeFilter' to: [/*]
2018-08-19 12:16:17.581 INFO 7008 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*]
2018-08-19 12:16:17.581 INFO 7008 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2018-08-19 12:16:18.823 WARN 7008 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactoryLocator' defined in class path resource [org/springframework/social/config/annotation/SocialConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.social.connect.ConnectionFactoryLocator]: Factory method 'connectionFactoryLocator' threw exception; nested exception is java.lang.IllegalArgumentException: The clientId property cannot be null
2018-08-19 12:16:18.825 INFO 7008 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2018-08-19 12:16:18.864 INFO 7008 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-08-19 12:16:18.881 ERROR 7008 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactoryLocator' defined in class path resource [org/springframework/social/config/annotation/SocialConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.social.connect.ConnectionFactoryLocator]: Factory method 'connectionFactoryLocator' threw exception; nested exception is java.lang.IllegalArgumentException: The clientId property cannot be null
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
版本
<io.spring.version>Brussels-SR4</io.spring.version>
<spring.cloud.version>Dalston.SR2</spring.cloud.version>
网上查不到这个原因,请老师说下~
2回答
-
慕前端7108815
2020-05-19
最后怎么解决的?
012020-05-19 -
JoJo
2018-08-20
错误原因里写着 The clientId property cannot be null。 检查一下clientId的配置,这个属性没配置上。
00
Spring Security技术栈开发企业级认证与授权
2662 学习 · 1561 问题
相似问题