# spring-demo **Repository Path**: coscore/spring-demo ## Basic Information - **Project Name**: spring-demo - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-11 - **Last Updated**: 2021-08-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Getting started A simple spring boot web project, supporting the use of docker and kubernets, for cicd. build with maven ``` git clone https://github.com/willzhang/spring-demo.git docker run -it -v ${PWD}/spring-demo:/workspace -w /workspace maven mvn clean package docker build -t willdockerhub/spring-demo . docker push willdockerhub/spring-demo ``` run with docker ``` docker run -d --restart always \ --name spring-demo \ -p 8080:8080 \ willdockerhub/spring-demo ``` access web for test ``` # curl :8080 Hello Spring Boot Demo! ``` ## how to generate this demo Refer to the link below: [https://start.spring.io/](https://start.spring.io/) [https://spring.io/guides/gs/spring-boot/](https://spring.io/guides/gs/spring-boot/)