szerhusenBC/jwt-spring-security-demo

dependency injection problem

Closed this issue · 1 comments

I have problems getting started with the project. See list of errors down here.
Any help would be much appreciated )

List of errors
Unable to start embedded Tomcat..
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtAuthorizationTokenFilter'
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtUserDetailsService'

etc..

When looking in the code with IntelliJ, I see the following:

Could not autowire. There is more than one bean of 'UserDetailsService' type.
Beans:
inMemoryUserDetailsManager   (UserDetailsServiceAutoConfiguration.class) jwtUserDetailsService   (JwtUserDetailsService.java)
Unable to start embedded Tomcat..
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtAuthorizationTokenFilter'
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtUserDetailsService'

etc..

When looking in the code with IntelliJ, I see the following:

Could not autowire. There is more than one bean of 'UserDetailsService' type.
Beans:
inMemoryUserDetailsManager   (UserDetailsServiceAutoConfiguration.class) jwtUserDetailsService   (JwtUserDetailsService.java)

Closed, because I published a complete new version.