server.port=8888
//config port number for application
server.servlet.context-path=/ocr
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url=jdbc:postgresql://localhost:5432/OCR
spring.datasource.username=postgres
spring.datasource.password=123@123a
spring.datasource.hikari.schema=dev
//config username, password, schema of datasource
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto=update
//config ddl auto: create db, or create-drop when shutdown or update
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
Comments
Post a Comment