GithubHelp home page GithubHelp logo

fatherfox / spring-boot-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netbuffer/spring-boot-demo

0.0 0.0 0.0 161 KB

spring-boot-demo spring-boot technology test,DI,IOC,tomcat,mvc,servlet,filter,log,logback,interface,restful,exception,http,build,git,system,json...

Java 99.60% Dockerfile 0.40%

spring-boot-demo's Introduction

spring-boot-demo

server.servlet.session.timeout

ns for nanoseconds
us for microseconds
ms for milliseconds
s for seconds
m for minutes
h for hours
d for days

mvn build test

mvn -Dmvn-arg=your param -DskipTests clean package -P test
-Dparam,-Pyour profile

maven-help-plugin use

  • mvn help:system Displays a list of the platform details like system properties and environment variables
  • mvn help:help Display help information on maven-help-plugin.Call mvn help:help -Ddetail=true -Dgoal= to display parameter details

branch

  • javamelody
  • spring-restdocs
  • templating-maven-plugin
  • thymeleaf
  • logback

docker镜像制作

构建

  1. 先通过maven打包到target目录下
  2. 执行构建指令:cd target;docker build -f ../Dockerfile -t netbuffer/spring-boot-demo:1.0 ../ (docker build -t netbuffer/spring-boot-demo:1.0 .)

运行

  • docker run --rm -it -p 9100:9100 netbuffer/spring-boot-demo:1.0
  • docker-compose up (使用docker-compose启动服务)

发布到DockerHub

需要注册DockerHub身份,再docker login登录对应的Registry

  1. docker images 找到镜像ID
  2. docker tag 镜像ID 你的DockerHub账户名/spring-boot-demo:1.0 打tag
  3. docker push 你的DockerHub账户名/spring-boot-demo:1.0 推送到远程

远程镜像

已发布到DockerHub,可以直接运行以下指令测试
https://hub.docker.com/r/javawiki/spring-boot-demo

  • docker pull javawiki/spring-boot-demo:1.0 拉取远程镜像
  • docker run -it --rm javawiki/spring-boot-demo:1.0 运行远程镜像

articles

spring-boot-demo's People

Contributors

netbuffer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.