Clone the repository
$ git clone https://github.com/denilsonssj/personapi
First, make sure you use JDK version 11 or higher. You can download this version at this link.
After, create file application.properties in location src/main/resources/ and copy with the values below and replace him.
spring.datasource.url: jdbc:postgresql://127.0.0.1:5432/personapi
spring.datasource.username: postgres
spring.datasource.password: postgres
spring.jpa.database-platform: org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.show-sql: false
spring.jpa.hibernate.ddl-auto: update
server.port: 9000
Now, install all dependencies using maven:
$ ./mvnw install -U clean
$ ./mvnw spring-boot:run
...
The demo project can be viewed here.