How to config basically application.properties in springboot


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

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch