Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
@@ -48,7 +48,7 @@ import org.springframework.util.PropertyPlaceholderHelper;
*
* <pre>
* @PreAuthorize("hasRole({role})")
- * public @annotation HasRole {
+ * public @interface HasRole {
* String role();
* }
* </pre>
@@ -30,7 +30,7 @@ package org.springframework.security.core.annotation;
* return switch (this) {
* case READ -> "user.permission-read";
* case WRITE -> "user.permission-write";
- * }
+ * };