Building a application with Spring Boot, Spring Security, JWT, JPA, MySql, H2, Auditing, Circle CI, Log4J2
Learn how to use Spring Boot 2
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/
-
Java - 1.8.x
-
Maven - 3.x.x
1. Clone the application
git clone https://github.com/zpaulo19/spring-boot-demo.git
. Run dev application
- Run the app
mvn spring-boot:run -Dspring.profiles.active=dev
dev is running on h2 database with default configuration
. Run prod application
- Create MySQL database
create database spring-boot-demo
- Run the app
mvn spring-boot:run -Dspring.profiles.active=prod -DDB_USERNAME=username -DDB_PASSWORD=password
replace username for your mysql user and replace password for yor mysql password
prod is running on mysql database with port=3306 and host=localhost
The server will start on port localhost:8080.
Folder link shared with request example for api