I also had the same issue. I changed it to the following and it worked.
Java :
@RequestMapping(value = "/test", method = RequestMethod.GET)
HTML code:
By default if you do not specify http method in a form it uses GET. To use POST method you need specifically state it.
Hope this helps.