提交 | 用户 | age
|
826b66
|
1 |
package com.hx.bean.annotations; |
C |
2 |
|
|
3 |
import com.hx.security.request.RequestRestriction; |
|
4 |
import org.springframework.context.annotation.Import; |
|
5 |
|
|
6 |
import java.lang.annotation.*; |
|
7 |
|
|
8 |
/**请求安全bean加载 |
|
9 |
*这里的Import的两个类就是需要加载的bean,这样就可以通过简单的添加一个注解来加载自己自定义的bean了,而且可 |
|
10 |
*以是很多个,可以打到jar包里面通过Maven引入都是ok的; |
|
11 |
* @author CJH |
|
12 |
* @date 202-06-17 |
|
13 |
*/ |
|
14 |
@Target(ElementType.TYPE) |
|
15 |
@Retention(RetentionPolicy.RUNTIME) |
|
16 |
@Documented |
|
17 |
@Import({RequestRestriction.class}) |
|
18 |
public @interface RequestSecurity { |
|
19 |
|
|
20 |
|
|
21 |
} |