인프런 커뮤니티 질문&답변
h2 db table 생성안됨
작성
·
156
0
h2 db 연결은 되었는데 member테이블 생성이 안됩니다.
spring: #띄어쓰기 없음
  datasource: #띄어쓰기 2칸
  url: jdbc:h2:tcp://localhost/~/jpashop #4칸 username: sa
  password:
  driver-class-name: org.h2.Driver
  jpa: #띄어쓰기 2칸
    hibernate: #띄어쓰기 4칸
      ddl-auto: create #띄어쓰기 6칸
    properties: #띄어쓰기 4칸
      hibernate: #띄어쓰기 6칸
        show_sql: true #띄어쓰기 8칸
        format_sql: true #띄어쓰기 8칸
logging.level: #띄어쓰기 없음
  org.hibernate.SQL: debug #띄어쓰기 2칸
      # org.hibernate.type: trace #띄어쓰기 2칸 ```


답변 1
0
안녕하세요. Jihoon Lee님, 공식 서포터즈 y2gcoder입니다.
올려주신 application.yml이 src/main/resources 에 있고, 마지막 캡처에 보이는 application.properties 를 삭제해주신 뒤, application.yml 만 남기고 다시 테스트해주시겠습니까? 🙂
감사합니다.





