Continuous Challenge

2. 프로젝트 환경설정 본문

Spring/실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

2. 프로젝트 환경설정

응굥 2022. 3. 22. 18:24
728x90
728x90

1. Spring Boot 프로젝트 생성

2. Lombok 설정

3. H2 Database 설치

4. JPA와 DB 설정 (application.yml)

spring:
  datasource:
    url: jdbc:h2:tcp://localhost/~/jpashop;
    username: sa
    password:
    driver-class-name: org.h2.Driver

  jpa:
    hibernate:
      ddl-auto: create
    properties:
      hibernate:
#        show_sql: true
        format_sql: true

logging:
  level:
    org.hibernate.SQL: debug
    org.hibernate.type: trace

 

 

728x90
728x90
Comments