Skip to content

shan5a6/javaSpringBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

This source code is an Spring Boot web application (mvc + thymeleaf). Tested with

  • Docker 19.03
  • Ubuntu 19
  • Java 8 or Java 11
  • Spring Boot 2.2.4.RELEASE
  • Maven

How to run this?

$ git clone https://github.com/mkyong/docker-java
$ cd docker-spring-boot
$ mvn clean package
$ java -jar target/spring-boot-web.jar

  access http://localhost:8080

//dockerize

// create a docker image
$ sudo docker build -t spring-boot:1.0 .
// run it
$ sudo docker run -d -p 8080:8080 -t spring-boot:1.0

  access http://localhost:8080

About

javaSpringBoot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published