-
Executar pelo terminal:
psql -h localhost -U postgres
CREATE DATABASE minicurso;
🔗 Common Application Properties
spring.datasource.url=jdbc:postgresql://localhost:5432/minicurso
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.0</version>
</dependency>
-
Executar pelo terminal:
mvn spring-boot:run