1.查看接口实现类是否加入注解,如service、repository等。

    2.查看spring配置文件是否自动扫描包

       <context:component-scan base-package="xxx.xx.xxx">

   3.查看是否在web.xml中加载spring容器。(我就是监听漏了,汗...)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案