1.加入@Controller注解后编写程序无法自动提示,去掉了@Controller注解后就可以了!

使用STS加入controller注解后编写程序无法自动提示

使用STS加入controller注解后编写程序无法自动提示

 

2.解决方案:将@Controller替换为@RestController后,可以完美的提示了!

使用STS加入controller注解后编写程序无法自动提示

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2021-09-26
  • 2022-12-23
  • 2021-04-08
  • 2021-12-28
  • 2021-11-14
  • 2021-07-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案