DEV Community

Cover image for How to Deploy Spring to China?
21CloudBox
21CloudBox

Posted on • Updated on • Originally published at 21cloudbox.com

How to Deploy Spring to China?

What is Spring?

Spring is an open source web application framework developed based on the Java language.

21YunBox provides a very simple Spring project deployment method. You can deploy on the 21YunBox by using the Java runtime environment.

How to Deploy a Spring Project to the Server in Minutes

  1. Register to become a 21YunBox member
  2. On Gitee Fork Spring Boot Startup Template
  3. Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base (repo)
  4. Create with the following configuration:
Environment Java
Build Command ./gradlew bootJar
Start command java -jar build/libs/spring-boot-0.0.1-SNAPSHOT.jar --server.port=10000

Note:

  1. Please modify the jar package path in Start Command according to your project name, such as: java -jar build/libs/xxx.jar --server.port=10000

  2. 21YunBox default read port 10000

Spring Boot Startup Template is based on the Startup Project as a basis.

Within seconds, your Spring service can be accessed at app_id.21yunbox.com.

Why Choose 21YunBox?

21YunBox is a Cloud Service Platform based out of Beijing, China. We specialize in modern web hosting and automation solutions. This enables you to set up websites instantly.

Have questions about hosting and deploying in China? Let us know, we are happy to help! 21YunBox@gmail.com

To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms, please refer to:



This article's content originated here

For additional detail and future modifications, refer the original post.

Top comments (0)