spring - "Error: HttpStatus cannot be resolved to a variable" How to resolve This? -
i getting error in below code @ line 2: @responsestatus(httpstatus.ok)
. error is: "httpstatus cannot resolved variable". imports required this? missing necessary jar file? help?
@requestmapping( value = "/{id}", method = requestmethod.get ) @responsestatus(httpstatus.ok) @responsebody public string validateuser( @pathvariable( "id" ) string id){ return "user validated" }
add:
import org.springframework.http.httpstatus;
Comments
Post a Comment