application.yml 설정 (MySql)
# 서버 포트 설정
server:
port: 80
# database 연동 설정
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/db_codingrecipe?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: root
password: 1186
thymeleaf:
cache: false
# spring data jpa 설정
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
open-in-view: false
hibernate:
ddl-auto: create
properties:
hibernate:
format_sql: true
# devtolls 설정
devtools:
# Auto Restart
restart:
enabled: true
additional-exclude: static