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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -