HTTP Status 405-Method does not allow Type Status Report message JSPs only permit GET POST or HEAD Description The method received in the request line is served by the source

HTTP Status 405-Method not allowed

Type Status Report

消息 JSPs only permit GET POST or HEAD

The method received in the description request line is known by the source server, but the target resource is not supported

Apache Tomcat/8.5.51

Solution:
add an isErrorPage = "true" in front of the target view

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isErrorPage="true"%>
Published 21 original articles · liked 0 · visits 721

Guess you like

Origin blog.csdn.net/D1124615130/article/details/104761483