Skip to content

ms3729/springboot_mysql_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is an example of a java Application with mysql Db
in docker and separate container with docker-compose

default JDK 1.8

How to run this example

  1. go to the root directory of project
  2. run command mvn clean package
  3. then run command docker build -t api-docker-image .
  4. after that run command docker-compose up
  5. in the end open Postman Application or any Other tools send a post request with request body like:
    {"name":"Apple","color":"Yellow"}
    to this url http://localhost:9091/fruits
    for call application save method

About

sample application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published