why does annotate class as @Service do not create bean?

前端 未结 4 1973
予麋鹿
予麋鹿 2021-01-25 04:19

I has class like this:

@Service(\"userDetailsService\") 
public class MyUserDetailsService implements UserDetailsService {
    ...

and trying t

4条回答
  •  独厮守ぢ
    2021-01-25 04:57

    If you use annotations to specify your beans, you need to have add an entry to your config to scan the classpath for them.

    
    

提交回复
热议问题