https://github.com/ImSejin
Posts
Q&A
"Prototype/ํ๋ก์"๋ก ์ค์ ํ๋๋ฐ ๋์ผํ ๊ฐ์ฒด๋ก ๋์ต๋๋ค
๊ฐ์ฌํฉ๋๋ค, ๋๋ฒ๊ฑฐ๋ฅผ ์์ ํ ์๊ณ ์์๋ค์... ๋๋ถ์ ๋๋ถ๋ถ์ ์๋ฌธ์ด ํ๋ ธ์ต๋๋ค. ๊ทผ๋ฐ ๋๋ฒ๊ฑฐ๋ก ๋ฉ์๋ ์ฝ ์คํ์ ๋ฐ๋ผ๊ฐ ๋ณด๋๊น ์๋ฌธ์ด ๋ค์๋ ๊ฒ ์์ต๋๋ค. --- ๋จผ์ operation๊ณผ๋ ์๊ด์์ด class proxy instance(Prototype$$EnhancerBySpringCGLIB$$๋ผ๊ณ ์ถ๋ ฅ๋ ๊ฒ)๋ ๋ฑ 1๊ฐ๋ง ์์ฑ๋์์ต๋๋ค. origin target์ method ์คํ ์, origin target์ constructor๋ฅผ ์คํํ๊ณ MethodInterceptor๋ฅผ ํตํด CglibMethodInvocation์ ์คํํ์ฌ method๋ฅผ invokeํ๋ ๊ฑธ๋ก ํ์ ํ์ต๋๋ค. --- ์ ๊ฐ ์๊ณ ์๊ธฐ๋ก class ๊ธฐ๋ฐ proxy๋ target class๋ฅผ ์์๋ฐ๋ ๊ฑธ๋ก ์๊ณ ์์ต๋๋ค. ์ ์ class proxy instance๋ ํ๋๋ฐ์ ์์ฑ๋์ง ์๊ณ , target class์ constructor๋ง ๋งค method ์คํํ ๋๋ง๋ค ๋์ํ๋๋ผ๊ณ ์. ์์์ ๋ฐ๋๋ค๋ฉด proxy instance๊ฐ ์ฌ๋ฌ ๊ฐ์ฌ์ผ ํ๋๋ฐ singleton์ธ ๊ฒ ์ดํด๊ฐ ์ ๊ฐ๋๋ค. ํน์ Spring AOP์์๋ class์ proxy๊ฐ ์๋๋ผ, method์ proxy๋ฅผ ์์ฑํด์ ์คํํ๋ ๊ฑด๊ฐ์?
- Likes
- 0
- Comments
- 4
- Viewcount
- 572
Q&A
site ํด๋๊ฐ ์์๊น๋๋ค ใ ใ
pom.xml > build์ pluginManagement๊ฐ ์๋๋ฐ ๊ทธ ์์ plugin์ ๋ฃ์ผ๋ฉด ์๋๋๋ผ๊ณ ์. build ๋ฐ๋ก ํ์์ ๋ฃ์ผ์ธ์. (์ฌ์ง)
- Likes
- 0
- Comments
- 4
- Viewcount
- 631
Q&A
ํฐ๋ฏธ๋ ์คํ ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ (pwd, ./mvnw package ๋ฑ)
mvnw.cmd package ๋ผ๊ณ ํ์๋ฉด git bash ์์ด๋ ๋น๋ํ ์ ์์ต๋๋ค.
- Likes
- 9
- Comments
- 6
- Viewcount
- 915
Q&A
nanosecond -> milliseconds
spring-core ๋ฒ์ ์ด ์ฌ๋ผ๊ฐ๋ฉด์ StopWatch์ unit์ด ms์์ ns๋ก ๋ณ๊ฒฝ๋์ด์. ํด๋น ๊ธฐ๋ฅ์ด PR๋ก ์ฌ๋ผ๊ฐ ์ํ์ธ๋ฐ, ์ธ์ ๋ฆด๋ฆฌ์ฆ๋ ์ง๋ ๋ชจ๋ฅด๊ฒ ๋ค์. stopwatch ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๋ง์ผ๋ ์ฐพ์๋ณด์๋ฉด ๋ ๊ฑฐ ๊ฐ์์. unit์ ๋ณ๊ฒฝํ๊ณ ์ถ์ผ์๋ฉด https://github.com/ImSejin/common-utils ์ด๊ฑฐ ์จ ๋ณด์ธ์.
- Likes
- 0
- Comments
- 2
- Viewcount
- 664




