17. BLOG만들기-DB초기화(더미데이터 사용)

박선규's avatar
Jan 30, 2024
17. BLOG만들기-DB초기화(더미데이터 사용)
notion image
📌
미리 값을 집어넣게 더미데이터를 설정한다.
 
notion image
server: servlet: encoding: charset: utf-8 force: true session: timeout: 30m port: 8080 spring: mustache: servlet: expose-session-attributes: true expose-request-attributes: true datasource: driver-class-name: org.h2.Driver url: jdbc:h2:mem:test;MODE=MySQL username: sa password: h2: console: enabled: true sql: init: data-locations: - classpath:db/data.sql jpa: hibernate: ddl-auto: create show-sql: true properties: hibernate: format_sql: true defer-datasource-initialization: true
notion image
 
Share article
RSSPowered by inblog