Jdbc Template 사용시 DataSource의 출처 /Simplifying Jdbc(Jdbc 공식문서)

김태훈·2023년 6월 28일

1. DataSource의 출처

https://docs.spring.io/spring-framework/reference/6.0-SNAPSHOT/data-access/jdbc/core.html#jdbc-JdbcTemplate

해당 링크를 보고 알게 된 사실인데,

The DataSource should always be configured as a bean in the Spring IoC container. In the first case the bean is given to the service directly; in the second case it is given to the prepared template.

다음과 같은 글이 있었다.

2.Simplifying Jdbc

JdbcTemplateInsert 사용하여 insert 간단히 하기
https://docs.spring.io/spring-framework/reference/data-access/jdbc/simple.html
해당 사이트 지금은 아닌데,곧 버전 업데이트할 듯?

profile
기록하고, 공유합시다

0개의 댓글