티스토리 뷰

Devolopment/JAVA

application.properties

OpenUiz 2020. 2. 25. 14:12
반응형

스프링부트 application.properties의 기초적인 형태

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/<DB-NAME>?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Seoul
spring.datasource.username=<DB-ID>
spring.datasource.password=<DB-PASSWORD>
spring.session.store-type=none

spring.jpa.hibernate.ddl-auto=update
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
spring.jpa.database=mysql
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

spring.thymeleaf.cache=false

logging.level.org.hibernate=info
logging.level.org.springframework.web=info
logging.level.org.zerock=info

(복사해다가 써야지.)

 

반응형
반응형
최근에 달린 댓글