package com.github.kazuki43zoo.core.security; import org.springframework.security.core.annotation.AuthenticationPrincipal; import java.lang.annotation.*; @Target({ElementType.PARAMETER, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @AuthenticationPrincipal public @interface CurrentUser { }