spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/[DB이름]?serverTimeZone=UTC&CharacterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=
spring.jpa.show_sql=true -> 콘솔로 쿼리 로그를 확인할 수 있다.
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect -> MySQL버전
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.connector.version}</version>
</dependency>
'basic > Java' 카테고리의 다른 글
테스트 환경에서 lombok 사용하기 (0) | 2021.04.30 |
---|---|
스프링부트 원하는 배너 문구 띄우기 (0) | 2021.04.30 |
SpringBoot initializer (0) | 2021.04.28 |
[Java] String문자열의 ==과 equals()의 차이 (0) | 2021.04.22 |
Gradle Error : variable name not initialized in the default constructor, variable amount not initialized in the default constructor (0) | 2021.04.17 |