KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using spring rest controller. Here is the code. @RequestParam(value = "status", required = false, defaultValue = StatusEnum.STATUS.toString()) If i use enum as a defaultValue i am getting The value for annotation attribute RequestParam.defaultValue must be a constant expression. As per my understanding it should accept enum as a default value. Please advice.
Tags (comma-separated)
Save Edits
Cancel