Skip to content

Conversation

@Kim-Yukyung
Copy link
Member

#11 @RestController ๋˜๋Š” @service๊ฐ€ ๋ถ™์€ ํด๋ž˜์Šค๋งŒ AOP ์ ์šฉํ•˜์—ฌ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ

๐Ÿ›  ๋ณ€๊ฒฝ ์‚ฌํ•ญ
AOP๊ฐ€ ๋ชจ๋“  ํด๋ž˜์Šค์— ์ ์šฉ๋˜๋ฉด์„œ ๋ฐœ์ƒํ•œ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด @RestController ๋ฐ @service๊ฐ€ ๋ถ™์€ ํด๋ž˜์Šค๋งŒ AOP ์ ์šฉํ•˜๋„๋ก ์ˆ˜์ •
@Around("within(@org.springframework.web.bind.annotation.RestController *) || within(@org.springframework.stereotype.Service *)")

@Kim-Yukyung Kim-Yukyung merged commit 9013d07 into main Mar 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants