728x90
반응형
1. 의존성 추가
dependencies {
runtimeOnly 'mysql:mysql-connector-java'
}
2. application properties
#Database
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.profiles.active=local
spring.datasource.url= jdbc:mysql://db-d618t-kr.vpc-pub-cdb.ntruss.com:3306/pay_calculator_test?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=nomu9032
spring.datasource.password=jmk1994**
spring.datasource.hikari.connection-timeout= 3000
spring.datasource.hikari.validation-timeout= 3000
spring.datasource.hikari.minimum-idle= 5
spring.datasource.hikari.max-lifetime= 240000
spring.datasource.hikari.maximum-pool-size= 20
# Hibernate setting
spring.jpa.database= mysql
spring.jpa.database-platform= org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=validate
728x90
반응형
'Back-End > Spring Boot' 카테고리의 다른 글
Spring boot | Jacoco로 테스트 커버리지 확인하기 (0) | 2023.02.23 |
---|---|
Spring Boot | MockMvc with Spring Security and RestDocs (0) | 2023.02.21 |
Sping Boot | Backend Project | AWS S3 upload 구현 (0) | 2022.11.01 |
Sping Boot | Backend Project | File Upload (0) | 2022.11.01 |
Sping Boot | Backend Project | JWT in Cookie (0) | 2022.10.05 |