[Kotlin + Spring Boot + JPA + H2 + Gradle] 2. H2 데이터베이스 메모리 내 데이터베이스 설정
2025. 2. 3. 17:25
코프링
1. application.properties 파일 삭제후 application.yml 생성 2. h2 메모리 내 데이터베이스용으로 생성application.ymlspring: # H2 Console 설정 h2: console: enabled: true # H2 Console을 사용할지 여부 path: /h2-console # H2 Console의 접근 경로 # 데이터베이스 설정 datasource: driver-class-name: org.h2.Driver # H2 드라이버 사용 url: jdbc:h2:mem:management # 메모리 내 데이터베이스 (테스트용) username: sa # 접속할 사용자명 password: # 비밀번호..
[Kotlin + Spring Boot + JPA + H2 + Gradle] 1. 프로젝트 생성
2025. 2. 3. 16:16
코프링
1. 해당사이트 접속후 Spring Web, H2 Database, Spring Boot Dev Tools, Spring Data Jpa를 추가합니다.이후 Generate를 클릭합니다.https://start.spring.io/ 2. File - Project structure 클릭후 SDK가 선택한 JAVA로 선택되어있는지 확인후 변경합니다. 3. File - Settings - GradleBuild and run using, Run tests Using이 inteliJ IDEA로 선택을 합니다. build.gradleplugins { id("org.springframework.boot") version "3.4.2" id("io.spring.dependency-management") version..