반응형

Spring/inflearn 28

JPA

- JPA는 기존의 반복 코드는 물론이고, 기본적인 SQL도 JPA가 직접 만들어서 실행해줌 - JPA를 사용하면 SQL과 데이터 중심의 설계에서 객체 중심의 설계로 패러다임을 전환함 - JPA를 사용하면 개발 생산성을 크게 높일 수 있음 plugins { id 'org.springframework.boot' version '2.7.2' id 'io.spring.dependency-management' version '1.0.12.RELEASE' id 'java' } group = 'hello' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17' repositories { mavenCentral() } dependencies { implementation 'o..

Spring/inflearn 2022.09.06

순수 JDBC

spring.datasource.url=jdbc:h2:tcp://localhost/~/test spring.datasource.driver-class-name=org.h2.Driver spring.datasource.username=sa ▶ application.properties에 스프링부트 데이터베이스 연결 설정 추가 스프링부트 2.4부터는 spring.datasource.username=sa를 꼭 추가해야 함 → 추가하지 않으면 Wrong user name or password 오류 발생 plugins { id 'org.springframework.boot' version '2.7.2' id 'io.spring.dependency-management' version '1.0.12.RELEASE' i..

Spring/inflearn 2022.09.03

H2 데이터베이스 설치

https://www.h2database.com/ H2 Database Engine (redirect) H2 Database Engine Welcome to H2, the free SQL database. The main feature of H2 are: It is free to use for everybody, source code is included Written in Java, but also available as native executable JDBC and (partial) ODBC API Embedded and client/server mo www.h2database.com ▶ 링크에 접속해 h2 데이터베이스 설치 ▶ h2 console 실행 → 연결 ▶ drop table if exis..

Spring/inflearn 2022.09.02
반응형