为啥Realm里面使用@Autowired拿不到userSe
spring吧
全部回复
仅看楼主
level 1
为啥Realm里面使用@Autowired拿不到userService
2020年03月15日 05点03分 1
level 1
UserService注册给Spring容器了吗
2020年04月27日 03点04分 2
level 1
两种方式 myRealm加上_@component注解,或者使用ApplicationContext.getBean(UserService.class)
2020年05月09日 14点05分 3
level 1
xml中配置,<context:annotation-config>,使注解生效。
2020年05月21日 17点05分 4
最好是xml使用 <context:component-scan base-package="包名">
2020年05月22日 03点05分
1