1、访问某Servlet时报错如下:
type: Status report
message: HTTP method GET is not supported by this URL
description: The specified HTTP method is not allowed for the requested resource (HTTP
method GET is not supported by this URL).
解决办法:在相应的doGet或doPost方法中加入 response.setContentType("text/html");