一、注解类

 1 @Documented
 2 @Target({ElementType.TYPE,ElementType.METHOD})
 3 @Retention(RetentionPolicy.RUNTIME)
 4 public @interface IPFilter {
 5 
 6     /**
 7      * 访问ip白名单
 8      * @return
 9      */
10     String[] allow() default {};
11     
12     /**
13      * 访问ip黑名单
14      * @return
15      */
16     String[] deny() default {};
17 }
View Code

相关文章:

  • 2022-03-03
  • 2021-06-02
  • 2021-08-05
  • 2021-11-30
  • 2021-04-23
  • 2021-12-29
猜你喜欢
  • 2021-11-15
  • 2021-09-14
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案