当前位置:   article > 正文

@Autowired注解注入失败,提示could not autowire的解决办法_controller层注入service报错could not autowire. no beans

controller层注入service报错could not autowire. no beans of "lemergencystorag

controller层无法调用接口层提示could not autowire的解决办法

主要原因是因为我们的spring检验级别的问题,我们可以通过降低检验的安全级别就可以解决这一问题。

File —> Settings—>Editor—>Inspections—>Spring————》将最右边的Serverity改为Warning

       
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/946581
推荐阅读
相关标签
  

闽ICP备14008679号