84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
比如AuthServiceImpl下有getUser()和getPage()两个方法,在getPage中我要调用getUser()方法,使用
@Autowired(required = false) private AuthService authService;
自动注入会报错,在getPage里面new一个AuthService对象也不可以。
像这种service中使用当前对象应该怎么注入?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
this.getUser();
If there is no problem with the configuration, you can consider the version issue
this.getUser();
If there is no problem with the configuration, you can consider the version issue