formgetpostservletlogin()dopostdogetformhiddenmethod=login,405method not allowed"HTTP method POST is not supported by this URL"
<form class="form-horizontal" method="post" action="${pageContext.request.contextPath }/user">
<input type="hidden" name="method" value="login">
<div class="form-group">
<label for="username" class="col-sm-2 control-label"></label>
<div class="col-sm-6">
<input type="text" class="form-control" id="username" name="username"
placeholder="">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label"></label>
<div class="col-sm-6">
<input type="password" class="form-control" id="inputPassword3" name="password"
placeholder="">
</div>
</div>
form code of jsp