Skip to content

zpaulo19/spring-boot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Demo Example Circle CI

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/

Requirements

  1. Java - 1.8.x

  2. Maven - 3.x.x

Steps to setup

1. Clone the application

git clone https://github.com/zpaulo19/spring-boot-demo.git

. Run dev application

  1. Run the app
mvn spring-boot:run -Dspring.profiles.active=dev

dev is running on h2 database with default configuration

. Run prod application

  1. Create MySQL database
create database spring-boot-demo
  1. 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

https://www.getpostman.com/collections/a0fcc6f15fd7b7567f2d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages