Spring中Controller层中的method显示为灰色并且提示method is never used的原因

原因是没有给方法添加修饰符,在方法上添加public即可

原文地址:https://www.cnblogs.com/tudoo/p/11794040.html