我们知道 Springboot是负责创建服务的 有的时候 我们不区分 都混杂在一起。有的时候 我们会对服务进行细分,然后就是微服务 这一个springboot project可能含有很多个微服务。
springboot的启动方式有三个:
main-mvn spring-boot run-pack with maven clean install and then run jar

总结:
手动把所有的service都启动一遍。
然后进行group configurations 就group一下 然后就可以通过这个自定义分组 来一键开启所有的微服务项目了。
IDEA 一键同时启动多个微服务模块项目

部署微服务 这就涉及到了production env. 我们可以打成jar一键运行?还是打包成war扔到tomcat容器中运行?推荐持续集成容器化部署:
Jenkins+GitLab+DOcker.
传统的手动部署:git push ->pull request->maven build new image->get new image and delete old->delete old container and run new image->check through web browser.
CI: only need to manually check git push and if the project runs correctly(first and last step), other steps use Jenkins+GitLab+Docker
高效部署Springboot的三种方式。

Logo

一站式 AI 云服务平台

更多推荐