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 MVC.
Here is an example:
@Order(1)
public class StatelessAuthenticationSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private UserDetailsService userDetailsService;
@Autowired
private TokenAuthenticationService tokenAuthenticationService;
}
What happen to the order of above mentioned class if we do not use this annotation?