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

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

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

猜你喜欢

转载自blog.csdn.net/qq_26365837/article/details/88555939