没有加注解的后果 发生了异常: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'categoryController' method 原因是没有加注解,系统就找不到这个方法。