---
title: "HTTP Status 405 - HTTP method POST is not supported by this URL"
author: "413899327"
date: "2010-11-12T00:05:34Z"
tags: []
categories: ["编程语言"]
slug: "http-status-405-http-method-post-is-not-supported-by-this-url"
draft: false
lastmod: "2010-11-12T00:05:34Z"
id: 809353
url: "https://rogerfederer.iteye.com/blog/809353"
---

今天写了个文件上传的DEMO，但是再执行上传任务的时候报错
页面错误提示为：
HTTP Status 405 - HTTP method POST is not supported by this URL

一直不知错在何处，后来才发现我的servlet里没有doPost方法。居然使用doGet方法。