84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
比如AuthServiceImpl下有getUser()和getPage()两个方法,在getPage中我要调用getUser()方法,使用
@Autowired(required = false) private AuthService authService;
自动注入会报错,在getPage里面new一个AuthService对象也不可以。
像这种service中使用当前对象应该怎么注入?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
this.getUser();
S'il n'y a pas de problème avec la configuration, vous pouvez considérer le problème de version
this.getUser();
S'il n'y a pas de problème avec la configuration, vous pouvez considérer le problème de version