在启动类加注解@ComponentScan("com.controller")即可,括号里表示Controller所在包名。

参考:https://blog.csdn.net/jialiang_chen/article/details/53871046

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-11-10
  • 2022-02-04
  • 2021-07-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-10-16
相关资源
相似解决方案