首页 > 编程知识 正文

urlrewrite,java报错NoSuchmethoderror

时间:2023-05-06 12:28:49 阅读:29102 作者:1617

结论性意见:@RequestMapping 如果【只】写在类上是无效的。

测试1 :即使只有一种方法,也不执行。 正常的开始!

@ slf4j @ rest controller @ request mapping (value='/demo ',method=RequestMethod.GET ) publicclasscontrolllertest { put

@ slf4j @ rest controller @ request mapping (value='/demo2',method=RequestMethod.GET ) publicclasscontrollertest2{

@ slf4j @ rest controller @ request mapping (value='/demo3',method=RequestMethod.GET ) publiccclasscontrolllertest3{ }

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。