일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 스프링 핵심 기능
- db
- http
- 김영한
- transaction
- springdatajpa
- SpringBoot
- kotlin
- Servlet
- Proxy
- java
- 알고리즘
- Greedy
- Exception
- pointcut
- 백준
- Spring Boot
- JPQL
- Android
- Thymeleaf
- 그리디
- spring
- 자바
- 스프링 핵심 원리
- 스프링
- QueryDSL
- jpa
- AOP
- JDBC
- 인프런
- Today
- Total
목록datasource (2)
개발자되기 프로젝트
package hello.jdbc.repository; import hello.jdbc.domain.Member; import lombok.extern.slf4j.Slf4j; import org.springframework.jdbc.support.JdbcUtils; import javax.sql.DataSource; import java.sql.*; import java.util.NoSuchElementException; /** * JDBC - DataSource 사용, JDBCUtils 사용 */ @Slf4j public class MemberRepositoryV1 { private final DataSource dataSource; public MemberRepositoryV1(DataSource d..
ConnectionTest - 드라이버 매니저 @Test void driverManager() throws SQLException { Connection con1 = DriverManager.getConnection(URL, USERNAME, PASSWORD); Connection con2 = DriverManager.getConnection(URL, USERNAME, PASSWORD); log.info("connection={}, class={}",con1, con1.getClass()); log.info("connection={}, class={}",con2, con2.getClass()); } ConnectionTest - 데이터소스 드라이버 매니저 추가 스프링이 제공하는 DataSource 가 적..