Is there a way to set Spring's @ResponseStatus `reason` field from inside its class?

后端 未结 0 1078
予麋鹿
予麋鹿 2020-11-28 08:10

I\'m trying to return the below custom exception in Spring, and don\'t want to hardcode the reason since it should be used for any incorrect values, yet also state the reaso

相关标签:
回答
  • 消灭零回复
提交回复
热议问题