Home > Back-end >  Have multiple alias AliasFor set a field
Have multiple alias AliasFor set a field

Time:10-03

Requirements:
Here need to @ RequestMapping and @ MessageMapping together, do you just need to set a value can be set at the same time the two values,

Question:
Tried to create a new annotation, and inherit the above two, try to use AliasFor way to realize the alias, but AliasFor set only one, and a method can only play a AliasFor,

So how can have multiple alias, complete set a field can not limited to AliasFor, but to spring-based boot original mechanism, can't modify the source code in a way that,



the picture is an error in the way, but should be able to express what I want function,
  • Related