application.properties 설정
spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/example?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 spring.datasource.username=user spring.datasource.password=UserPassword spring.jpa.hibernate.ddl-auto : JAVA의 Entity를 참고하여, Spring Boot 실행 시점에 자동으로 필요한 데이터베이스의 테이블 설정을 자동으로 해줍니다. none : 아무것도 실행하지 않습니다. create : SessionFactory 시작 시점에 Drop을 ..
IT 개발/Spring
2021. 3. 30. 11:47
반응형