View Javadoc
1   package top.infra.localization;
2   
3   import org.springframework.core.annotation.AliasFor;
4   
5   import java.lang.annotation.Documented;
6   import java.lang.annotation.ElementType;
7   import java.lang.annotation.Retention;
8   import java.lang.annotation.RetentionPolicy;
9   import java.lang.annotation.Target;
10  
11  /**
12   * Created by zhuowan on 2018/3/30 16:15.
13   * Description:
14   */
15  @Documented
16  @Retention(RetentionPolicy.RUNTIME)
17  @Target(ElementType.TYPE)
18  public @interface LocalizedMessageBundle {
19  
20    @AliasFor("locale") MessageLocale value() default MessageLocale.US;
21  
22    @AliasFor("value") MessageLocale locale() default MessageLocale.US;
23  }