build.gradle
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.mysql:mysql-connector-j'
application.properties
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://[ip주소]:3306/[데이터베이스명]?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul
spring.datasource.username=사용자명
spring.datasource.password=비밀번호
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=true
'SpringBoot > 스프링부트 스터디' 카테고리의 다른 글
스프링부트 스터디 8주차 - aws 계정 설정 (1) | 2024.07.02 |
---|---|
스프링부트 스터디 6주차 - read 기능 구현 (0) | 2024.06.25 |
스프링부트 스터디 5주차 - update, delete 기능 구현 (0) | 2024.06.22 |
스프링부트 스터디 4주차 - 회원가입, 로그인 기능 (0) | 2024.06.22 |
스프링부트 스터디 3주차 - 번호지정/답변개수표시/스프링시큐리티 (0) | 2024.06.21 |