I receive warning message per second after successful deployment on tomcat 7:
org.springframework.web.servlet.PageNotFound handleHttpRequestMethodNotSupported WARNING: Request method 'HEAD' not supported
but application works. How to avoid this annoying message?
You would need to add the following @RequestMapping(method = {RequestMethod.GET, RequestMethod.HEAD})
on your methods which are failing. This will allow them to handle HEAD
requests and should make the warning go away.
This is a bug of IntelliJ IDEA
>> see issue
it will be fix in next release and until that there is a patch was created by them Download link
Close idea and Replace bellow file with downloaded one(before do that keep backup of the original file)
<idea home>/plugins/JavaEE/lib/javaee-impl.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With