SessionUser user = (SessionUser) httpSession.getAttribute("user");
LoginUser.java
@Target(ElementType.PARAMETER) // 1 @Retention(RetentionPolicy.RUNTIME) public @interface LoginUser { // 2 }