在spring配置文件里配置全局的包掃描<context:component-scan base-package="我的包名" ></context:component-scan>,提示的是這一局的異常,解決其實很簡單,只需要在這一句話后面添加一個use-default-filters="false">就可以了,變成<context:component-scan base-package="我的包名" use-default-filters="false"></context:component-scan>,這樣雙向箭頭就消失了,異常也就消失了。

image.png