service()、dopost()、doget()的区别

service()方法能处理get请求和post请求

dopost()只处理post请求,当发送get请求时会产生异常:

同样doGet()只处理get请求,当发送post请求时会产生异常:

猜你喜欢

转载自www.cnblogs.com/ma360359954/p/11042572.html