405

问题原因

@PostMapping方式

问题解决

使用postman进行post测试。

Bug重现

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Mar 14 10:14:25 CST 2019
There was an unexpected error (type=Method Not Allowed, status=405).
Request method 'GET' not supported
原文地址:https://www.cnblogs.com/pycrab/p/10528527.html