1. 添加@Component注解
2. @Autowired
private ISysDeptService iSysDeptService;
private static A a; (A为你的类名)
3. @PostConstruct
public void init() {
a= this;
}
4. 调用 a.iSysDeptService.selectUserId();

1. 添加@Component注解
2. @Autowired
private ISysDeptService iSysDeptService;
private static A a; (A为你的类名)
3. @PostConstruct
public void init() {
a= this;
}
4. 调用 a.iSysDeptService.selectUserId();