New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'com.xx.HttpApi' that could not be found. #128
Comments
麻烦提供一下完整的堆栈,应该有HttpApi没找到的具体原因。 |
堆栈是指哪些? |
完整的错误日志 RetrofitClient加上fallback就用不了,这个我没复现出来。因此得依据你具体的情况才可以分析。 |
WARNING: An illegal reflective access operation has occurred Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. APPLICATION FAILED TO START Description: Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a single bean, but 2 were found: Action: Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed Process finished with exit code 1 |
可以在注入 |
也可以使用2.3.8版本试试,这个版本指定了 |
没有qualifier这个注解,2.3.8还是一样的错误 |
|
Spring是2.7.3,加上@qualifier可以了 |
[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'com.xx.HttpApi' that could not be found.
Action:
Consider defining a bean of type 'com.xx.HttpApi' in your configuration.
Process finished with exit code 1
一台电脑这样正常,另一台这样却报上面错误
那台报错的改成这样正常,改成这样后前一台又出错,不知道是什么问题
The text was updated successfully, but these errors were encountered: