-
Notifications
You must be signed in to change notification settings - Fork 0
Initialize Project
Ali Akbari edited this page Apr 2, 2020
·
1 revision
First, Initialize your spring-boot project. Then go to application.properties and add below config:
server.port=8090
Second, Add your dataBase dependency in pom.xml file (In this project dataBase is postgres)
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.8</version>
</dependency>
Then go to application.properties and add below config
spring.datasource.url=jdbc:postgresql://localhost:5432/counting
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.username=********
spring.datasource.password=********
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=create-drop
#spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true