亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

java - Spring service中怎么使用當(dāng)前的service對象,Autowired不成功
伊謝爾倫
伊謝爾倫 2017-04-18 10:55:44
0
2
519

比如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伐。

reply all(2)
伊謝爾倫

this.getUser();

巴扎黑

If there is no problem with the configuration, you can consider the version issue

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template