This is a template for a Spring Boot application. You can fork this repository to create your own Spring Boot application. This template includes the following features:
- Spring Boot (2.7.8)
- Spring Data JPA
- Spring Security
- Spring Web
- Spring DevTools
- Lombok
- PostgreSQL
- Swagger
- Maven
- Git
- Docker
- Java 17
- Maven 3
- Git
- IntelliJ IDEA (optional)
- Postman (optional)
- Postgres Server
- Clone the repository
- Create a database in Postgres
- Create a
application-prod.properties
file in the resources directory of the project - Add the following environment variables to this file:
spring.datasource.url=jdbc:postgresql://localhost:5432/{database_name}
spring.datasource.username={username}
spring.datasource.password={password}
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
- Run the application