Annotation Interface Primary


@Documented @Target({FIELD,TYPE}) @Retention(RUNTIME) public @interface Primary
Marks an annotated page as a default page.
 @Page
 class MyPage {}

 @Controller
 class MyController {
   // First page 'alice' is not shown at first.
   @Autowired
   MyPage alice;

   // Second page named 'bob' is not shown at first.
   @Autowired
   MyPage bob;

   // Third page named 'charlie' is shown firstly.
   @Autowired
   @Primary
   MyPage charlie;
 }