aiserverdevsprin2738
@aiserverdevsprin2738
Reviews Written
-
Average Rating
-
Posts
Q&A
@Import(AppV1Config.class) ์ง๋ฌธ์์ต๋๋ค.
์๋ ํ์ธ์ ๋ต๋ณ์ ์ถ๊ฐ์ ์ธ ์ง๋ฌธ์ด์์ด. ์ด์ด์ ์ง๋ฌธํด๋๋ ๊น์??scanBasePackage ๋ก config ํด๋์ ๋ด๋ถํจํค์ง์ธ AppV1Config ๋ฅผ ์ ์ธ์์ผฐ๋ค๊ณ ํ๋๋ฐ์ค๋ช ํด์ฃผ์ ๊ฑฐ๋ก๋ AppV1Config ์ ์ด๋ ธํ ์ด์ ์ธ @Configuration ์ด ๋จผ์ ์ปดํฌ๋ํธ ์ค์บ์ ๊ฑธ๋ ค์ @Import ๋ฅผ์ฐพ์๊ฐ๋ค๊ณ ๋์ด์๋๊ฑฐ๊ฐ์ต๋๋ค.ProxyApplication์์ Import(ConfigClass => @configuraiton ์ด ๋ถ์) ๊ฐ ์์ด์ผ ํด๋น Config ํด๋์ค์ ์ง์ ํด์ Ioc ์ ๋น์ ์์ฑํ๋๊ฑฐ๊ฐ์๋ฐ ์๋๊น์??
- Likes
- 0
- Comments
- 3
- Viewcount
- 700
Q&A
์๋๋ฑ๋ก์์๋ ์ด ๋ฐฉ๋ฒ์ ์ฌ์ฉํ ์ ์๋์?
์ฐพ์๋ณด๋ @Component ์์๋ ๋ค๋ฅธ๋ฐฉ์์ ๋ผ์ดํ์ฌ์ดํด์ ์ง์ํ๋๊ฑฐ๊ฐ์ต๋๋ค!https://stackoverflow.com/questions/5419695/init-method-in-spring-controller-annotation-version
- Likes
- 7
- Comments
- 4
- Viewcount
- 319




