August 07, 2020

Spring boot failed Field customAuthProvider in SecurityConfig required a bean of type 'AuthProvider' that could not be found.

Description:

Field customAuthProvider in com.proximotech.zhw.WebServiceAuthProviderSecurityConfig required a bean of type 

'com.proximotech.zhw.WebServiceAuthenticationProvider' 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 'com.proximotech.zhw.WebServiceAuthenticationProvider' in your configuration.

Solution:
Annotation @component missing in the class
com.proximotech.zhw.WebServiceAuthenticationProvider

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments