What is the use of @Order annotation in Spring?

后端 未结 3 429
深忆病人
深忆病人 2020-12-08 02:09

I have come across a glance of code which uses @Order annotation. I want to know what is the use of this annotation with respect to Spring Security or Spring MV

3条回答
  •  Happy的楠姐
    2020-12-08 02:47

    @Order Annotation specifies the order of loading the bean by spring container. lower the order(integer) , higher is the precedence. So order of 0 will have more precedence than order of 10. Likewise order of -100 will have more precedence than 0.

提交回复
热议问题