為什么Post()請(qǐng)求不了點(diǎn)不進(jìn)去
public?class?HelloServlet?extends?HttpServlet?{ ????@Override ????protected?void?doGet(HttpServletRequest?request,?HttpServletResponse?response)?throws?ServletException,?IOException?{ ????????PrintWriter?out=response.getWriter(); ????????System.out.println("處理Get()請(qǐng)求...."); ????????response.setContentType("text/html;charset=UFT-8"); ????????out.println("<strong>HttpServlet</strong><br/>"); ????} ????@Override ????protected?void?doPost(HttpServletRequest?request,?HttpServletResponse?response)?throws?ServletException,?IOException?{ ????????PrintWriter?out=response.getWriter(); ????????System.out.println("處理Post()請(qǐng)求...."); ????????response.setContentType("text/html;charset=UFT-8"); ????????out.println("<strong>HttpServlet</strong><br/>"); ????} }
處理Get()請(qǐng)求...
處理Get()請(qǐng)求....
2020-10-27
from
2020-10-27
找到了,我老是把這個(gè)提交表單的form老是寫成from?
2020-10-27