Home  >  Q&A  >  body text

java - spring boot 访问静态页面出现Request method 'GET' not supported异常?

今天发现不能访问静态页面了,报的异常的是Request method 'GET' not supported.
html页面放在static下面

页面内容:

异常:

请教这是什么引起的?以前都是可以访问的.

黄舟黄舟2744 days ago2073

reply all(5)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:49:33

    I found the problem,

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:49:33

    Because you didn’t introduce jquery, you commented it.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:49:33

    Check the controller code or related configuration

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:49:33

    Check your control layer (Controller). This error occurs because the mapping address you requested does not support GET requests

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:49:33

    You’d better send the controller related code, otherwise you won’t see anything

    reply
    0
  • Cancelreply