doGet或doPost方法没有调用的一个原因

其实就是重写service方法时把super.service()给删了,由servlet的生命周期可知,service方法负责判断method并执行相应的doPost()或doGet()方法,删掉了继承语句导致了service逻辑跳转功能直接失效,自然不会执行doGet或doPost了

猜你喜欢

转载自www.cnblogs.com/shinji/p/13179345.html
今日推荐