On the recommended deployment of spring boot microservice project
If you have developed a spring boot program, you should know that the official Maven packaging plug-in of spring boot is used to package, and the jar package is generally more than 40m
If the company's server upload bandwidth is not high, it is very painful to manually upload a jar or Jenkins deploy a jar
However, if lib is not introduced when packaging, the jar package is usually only dozens of K, which is very small. You can transfer it as you want
This article will provide a bash startup script, which can be adapted to your application deployment mode with a little change
Let's take a look at my micro service directory structure:
Insert: docker is not used here. If you are free in the future, write another article on spring boot microservice deployment based on docker
In this way, if I want to start service0, I just need to enter in the service directory:
Service0 can be started
Finally, here is the source code of the startup script:
summary
The above is all about the recommended deployment method of spring boot microservice project in this paper. I hope it will be helpful to you.