比如AuthServiceImpl下有g(shù)etUser()和getPage()兩個方法,在getPage中我要調(diào)用getUser()方法,使用
@Autowired(required = false)
private AuthService authService;
自動注入會報錯,在getPage里面new一個AuthService對象也不可以。
像這種service中使用當(dāng)前對象應(yīng)該怎么注入?
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
If there is no problem with the configuration, you can consider the version issue