index 出现了警告,Method 'index()' is never used
IDEA 不是支持 spring-boot 的吗
IDEA 2017 版本
在使用 2016 版本的时候好像没有这个警告
index 出现了警告,Method 'index()' is never used
IDEA 不是支持 spring-boot 的吗
IDEA 2017 版本
在使用 2016 版本的时候好像没有这个警告
3 回答3.6k 阅读✓ 已解决
3 回答6k 阅读
3 回答2.6k 阅读✓ 已解决
3 回答1.7k 阅读✓ 已解决
1 回答2.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
2 回答1.8k 阅读
首先,Intellij完全支持Spring以及Spring boot.
这个提示是说这个方法没有被其他类调用。这是正确的,不耽误运行。
因为你这个是controller,当然没有方法会直接调用。