1application必须是在根目录下,否则无法扫描到对应的类,从而给前端返回值,

或者通过@ComponentScan(basePackages = {"com.example.com.example.demo.controller.DemoController"})来指定绝对路径springboot的application无法扫描到对应的Controller层的解决办法

 

 2

相关文章:

  • 2022-12-23
  • 2021-06-14
  • 2021-04-09
  • 2021-11-14
  • 2022-01-22
  • 2021-09-24
  • 2021-12-29
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2021-06-05
  • 2021-10-16
  • 2021-08-25
  • 2022-12-23
  • 2021-12-07
  • 2021-07-28
相关资源
相似解决方案