# Spring DataSource (MySQL)
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/데이터베이스명?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
-> ~~동일~~ useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
spring.datasource.username=아이디 spring.datasource.password=비밀번호
# Spring JPA
spring.jpa.database=mysql
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=false
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
'spring' 카테고리의 다른 글
게시판 프로젝트- 2 (4) | 2024.07.25 |
---|---|
RequestDto, ResponseDto (3) | 2024.07.23 |
게시판 프로젝트 (0) | 2024.07.18 |
entity와 domain, dto (0) | 2024.07.18 |
스프링 기본 정리 (0) | 2024.07.17 |