Spring RequestParam constrained to EnumSet

后端 未结 0 1690
庸人自扰
庸人自扰 2020-12-03 06:32

Is there a way without writing custom code to constrain a Spring RequestParam to be a member of an EnumSet or part of an Enum?

For example, I have an enum -

         


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