@RequestMapping could not be loaded

question:

          To do an interface test, you need to pass in json data, but the page displays 404

           For the same controller, one @RequestMapping can be mapped, and the other cannot be mapped.

Solutions:

          Repeatedly check whether the url path is correct and whether the interceptor intercepts, but to no avail.

          You can enter the controller and enter other method mappings, but one of them cannot.

Resolution process:

        Referring to other people's blogs, when the controller method parameter type is bound to the mapping, if null or "" is passed in, it will appear

        The data conversion is abnormal , resulting in inaccessibility, prompting that the path is not found, which is actually a parsing error.

Reference blog:

        https://www.cnblogs.com/reload-sun/p/8985841.html

          

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325257495&siteId=291194637