| 1 | |
package com.ctrip.framework.apollo.common.auth; |
| 2 | |
|
| 3 | |
import java.lang.annotation.Documented; |
| 4 | |
import java.lang.annotation.ElementType; |
| 5 | |
import java.lang.annotation.Retention; |
| 6 | |
import java.lang.annotation.RetentionPolicy; |
| 7 | |
import java.lang.annotation.Target; |
| 8 | |
|
| 9 | |
import org.springframework.security.core.annotation.AuthenticationPrincipal; |
| 10 | |
|
| 11 | |
@Target({ElementType.PARAMETER, ElementType.TYPE}) |
| 12 | |
@Retention(RetentionPolicy.RUNTIME) |
| 13 | |
@Documented |
| 14 | |
@AuthenticationPrincipal |
| 15 | |
public @interface ActiveUser { |
| 16 | |
|
| 17 | |
} |