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

前端 未结 4 1930
予麋鹿
予麋鹿 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:51

    just import the other xml file in the spring-security.xml by using

    another thing u can do is that load all the xml files in the web.xml file using

    
    contextConfigLocation
    
    path to the xml files separated by commas
    
    
    

提交回复
热议问题