Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
.gitignore
.leanignore
README.md
pom.xml

README.md

Java Getting started

一个简单的使用 Servlet 的 Java 服务端应用,打成 war 包运行。 可以运行在 LeanEngine Java 运行时环境。

一键部署

Deploy to LeanEngine

本地运行

首先确认本机已经安装 LeanCloud 命令行工具,然后执行下列指令:

$ git clone https://github.com/leancloud/java-war-getting-started.git
$ cd java-war-getting-started

安装依赖:

mvn package

登录账户:

lean login

关联项目:

lean checkout

根据列表提示,输入数字,依次按回车确认,以关联到你的应用。

启动项目:

lean up

应用即可启动运行:localhost:3000

部署到 LeanEngine

部署到预备环境(若无预备环境则直接部署到生产环境):

lean deploy

将预备环境的代码发布到生产环境:

lean publish

相关文档

You can’t perform that action at this time.