Skip to content

Commit

Permalink
Add AOP Priority
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Dec 30, 2023
1 parent e5e0713 commit a7823c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.whatever.raisedragon.common.aop.auth

import org.springframework.core.annotation.Order

@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
@Order(value = 2)
annotation class Auth
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package com.whatever.raisedragon.common.aop.badwordfilter

import jakarta.validation.Constraint
import jakarta.validation.Payload
import org.springframework.core.annotation.Order
import kotlin.reflect.KClass

@Constraint(validatedBy = [BadWordValidator::class])
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Order(value = 1)
annotation class ValidateBadWord(
val message: String = "비속어가 포함되어 있습니다.",
val groups: Array<KClass<out Any>> = [],
Expand Down

0 comments on commit a7823c6

Please sign in to comment.