Commit b785fd66 authored by guozhipeng's avatar guozhipeng

添加说明

parent d7b6dcf4
......@@ -68,6 +68,62 @@ cf login -a https://api.cf.cn40.platform.sapcloud.cn -o "Shenzhen-Lianchuangjie-
密码: Gzp@123456
## deploy数据库
第一次使用,使用如下命令:
```
cds deploy --to hana:bookstore-hana --store-credentials
```
如果添加了新的数据表或字段和初始话CSV初始化文件或者添加了view视图
vscode命令行执行命令:
```
cds deploy --to hana:bookstore-hana
```
## 代码编译启动
### 启动命令
使用vscode开发工具命令快速启动代码(进入项目根目录执行命令)
编译命令(备用)
```
mvn clean install
```
启动命令
```
mvn spring-boot:run
```
启动成功后,日志中可能会告诉多个模拟使用的账户和密码,模拟登录用户如下(备用):
```text
"name":"privileged","password":""
"name":"authenticated","password":""
"name":"internal","password":""
"name":"system","password":""
"name":"admin","password":"admin"
"name":"user","password":"user"
```
### 启动成功
```text
2024-01-25T10:45:51.699+08:00 INFO 19288 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2024-01-25T10:45:51.743+08:00 INFO 19288 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2024-01-25T10:45:51.753+08:00 INFO 19288 --- [ restartedMain] customer.lianchuangjie.Application : Started Application in 2.858 seconds (process running for 3.419)
```
### 访问地址
启动成功访问:[http://localhost:8080/](http://localhost:8080/)
## 创建应用程序bookstore
在添加书店项目之前,我们需要确保您位于项目文件夹中。这两个项目(产品服务和书店)应该放在一起。在新创建的终端中运行以下命令以返回到projects文件夹:
......@@ -392,7 +448,6 @@ Application "bookshop" started and available at
[https://developers.sap.com/tutorials/cp-cap-java-hana-db.html#880cf07a-1788-4fda-b6dd-b5a6e5259625]()
通过本地CAP Java应用程序,在SAP Business Technology Platform中使用SAP HANA。
在上一个教程中,您已经将书店应用程序部署到SAP BTP。在本教程中,您将从本地运行的应用程序连接到SAP HANA Cloud on SAP BTP。通过这种混合设置,您可以在本地开发服务,同时连接到SAP HANA Cloud数据库,并缩短周转时间。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment