Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Quartz
- GIT
- JavaScript
- resource
- vscode
- context
- grep
- tomcat
- Windows
- find
- plugin
- profile
- Source
- maVen
- Mac
- web.xml
- import
- Windows 10
- 네트워크
- IntelliJ
- 줄바꿈 문자
- ssh
- xargs
- port
- VirtualBox
- lsof
- 단축키
- Eclipse
- netsh
- bash
Archives
- Today
- Total
develog
[spring boot] schema.sql, data.sql 사용하기 본문
resources 폴더에 아래 2개 파일을 만든다
-- resources/schema.sql
create table tb_atest (
name varchar(20) primary key,
reg_ts timestamp
);
-- resources/data.sql
insert into tb_atest (name, reg_ts) values ('aa', now());
insert into tb_atest (name, reg_ts) values ('bb', now());
insert into tb_atest (name, reg_ts) values ('cc', now());
application.yml 에서 옵션을 활성화한다
# resources/application.yml
spring.sql.init.mode: always
Comments