String method=ServletActionContext.getRequest().getMethod();
System.out.println(method);

如果是get  会打印出GET  post会打印出POST

 

相关文章:

  • 2021-08-11
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2021-11-19
  • 2021-12-23
  • 2021-10-10
相关资源
相似解决方案