Spring DB ๊ธฐ์ ํํค์น๊ธฐ #2
JiwonDev
์คํ๋ง DB 2ํธ - ๋ฐ์ดํฐ ์ ๊ทผ ํ์ฉ ๊ธฐ์ ๊ฐ์ - ์ธํ๋ฐ ๋ฐฑ์๋ ๊ฐ๋ฐ์ ํ์ํ DB ๋ฐ์ดํฐ ์ ๊ทผ ๊ธฐ์ ์ ํ์ฉํ๊ณ , ์์ฑํ ์ ์์ต๋๋ค. ์คํ๋ง DB ์ ๊ทผ ๊ธฐ์ ์ ์๋ฆฌ์ ๊ตฌ์กฐ๋ฅผ ์ดํดํ๊ณ , ๋ ๊น์ด์๋ ๋ฐฑ์๋ ๊ฐ๋ฐ์๋ก ์ฑ์ฅํ ์ ์์ต๋๋ค., ๋ฐฑ์๋ ๊ฐ๋ฐ์ www.inflearn.com ๐ JdbcTemplate implementation 'org.springframework.boot:spring-boot-starter-jdbc' ์ฐธ๊ณ ๋ก JPA๋ฅผ ์ฌ์ฉํ๋ค๋ฉด spring-boot-starter-data-jpa ์ jdbc ์์กด์ฑ๋ ํฌํจ๋์ด์์ด ๋ฐ๋ก ์ถ๊ฐํ ํ์ ์๋ค. JdbcTemplate์ DataSource๋ฅผ ์ด์ฉํด ์ง์ ์์ฑํ๊ฑฐ๋ ๋น์ผ๋ก ๋ฑ๋กํ ์ ์๋ค. ๋ค๋ง ์คํ๋ง ๋ถํธ๋ฅผ ์ฌ์ฉํ๋ค๋ฉด ๊ทธ๋ฅ ๋ฐ๋ก ์ฐ๋ฉด๋..