一个简单的使用 Spring Boot 的 Java 服务端应用,打成 jar 包运行。 可以运行在 LeanEngine Java 运行时环境。
首先确认本机已经安装 LeanCloud 命令行工具,然后执行下列指令:
$ git clone https://github.com/leancloud/spring-boot-getting-started.git
$ cd spring-boot-getting-started
安装依赖:
mvn package
关联应用:
lean checkout
根据提示选择需要关联的应用。
启动项目:
lean up
应用即可启动运行:localhost:3000
部署到预备环境(若无预备环境则直接部署到生产环境):
lean deploy
将预备环境的代码发布到生产环境:
lean publish
