Idea Request method 'HEAD' not supported

项目配置完之后启动,后台一直在出Request method 'HEAD' not supported错误

很诧异,没想到那个地方会用到HEAD请求啊,全局搜索有没有找到.

后来网上搜索了下,是因为配置服务器的时候

 选中after launch了,idea在项目启动完成后,会通过method为HEAD的方式去请求主页,如果返回失败,会自动不断重试的。

解决方案

  1. 去掉after launch选项
  2. 在自己的主页的请求上,增加对HEAD的支持
原文地址:https://www.cnblogs.com/lckblog/p/8398332.html