Notice
Recent Posts
Recent Comments
Link
목록datasource (1)
아님말고

1. 접속 DB 1개인 경우 application.yml 에 datasource 정보만 기입하고 따로 config 파일 (class 또는 xml) 을 안 만들어도 spring boot 에서 자동구성해준다. spring: datasource-default: hikari: jdbc-url: jdbc:h2:~/mytest driver-class-name: org.h2.Driver username: sa password: 2. 접속 DB 2개인 경우 테스트를 위한 테이블 및 데이터 create table member( id int not null auto_increment, name varchar(255) not null, email varchar(255) null, primary key(id) ) insert..
JPA
2022. 8. 17. 13:29