-
H2-Database 서버 꺼져도 데이터 유지하기 +intelliJ settingStack/Aws 2022. 10. 28. 23:19
application.properties
#h2 console #spring.datasource.url=jdbc:h2:mem:db spring.h2.console.enabled=true spring.datasource.driverClassName=org.h2.Driver spring.datasource.url=jdbc:h2:file:./myselectdb;AUTO_SERVER=TRUE; spring.datasource.username=sa spring.datasource.password= spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.properties.hibernate.format_sql=true spring.jpa.hibernate.ddl-auto=update spring.jpa.generate-ddl=true logging.level.org.hibernate.SQL=debug logging.level.org.hibernate.type.descriptor.sql=trace server.port=8080
build.gradle
dependencies { //h2 console 세팅 runtimeOnly 'com.h2database:h2' //implementation 'org.springframework.boot:spring-boot-starter-data-jpa' }
Expert options -> Introspect 옵션 체크 잘쓰세요..
'Stack > Aws' 카테고리의 다른 글
AWS 시간 변경 (RDS, JVM 시간 변경) (0) 2022.11.13 리눅스 파일 옮길때 permission deny 에러 해결법 (0) 2022.10.31 AWS ubuntu server 계속 돌게 하기 (1) 2022.10.25 aws 서버 우분투 포트포워드 (0) 2022.10.25 aws 세팅중 gradle-task-build오류 뜰때 해결방법 (0) 2022.10.25