Skip to content

Commit d3f5ec0

Browse files
authored
Merge pull request #23128 from renejeglinsky/master
Updates after testing
2 parents 71bee56 + 0b816c9 commit d3f5ec0

8 files changed

Lines changed: 30 additions & 30 deletions

File tree

tutorials/cp-cap-java-app-studio/cp-cap-java-app-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Before you begin, check the settings of your browser. You need to add domains `o
5353

5454
4. Choose **`CAPTutorial`** as the name for your dev space and **Full Stack Cloud Application** as the application type. Continue with **Create Dev Space**.
5555

56-
<!-- border -->![choose space name and type](select-app-type.png)
56+
<!-- border -->![Shows the selection of available dev spaces, as well as their predefined and additional extensions.](select-app-type.png)
5757

5858
By selecting **Full Stack Cloud Application**, your space comes with several extensions out of the box that you will need to develop CAP applications. For example, CDS tools are built in. This saves unnecessary setup time.
5959
The creation of the dev space takes a few seconds.
-217 KB
Loading

tutorials/cp-cap-java-deploy-cf/cp-cap-java-deploy-cf.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ When deploying an application to Cloud Foundry, you can use a manifest to descri
3030
2. Add the following code to the newly created file and make sure you **Save** the file.
3131

3232
```YAML
33-
---
34-
applications:
35-
- name: bookstore
36-
path: srv/target/bookstore-exec.jar
37-
random-route: true
38-
buildpacks:
39-
- java_buildpack
40-
env:
41-
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 17.+ }}'
42-
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
43-
SPRING_PROFILES_ACTIVE: cloud
44-
services:
45-
- bookstore-hana
33+
---
34+
applications:
35+
- name: bookstore
36+
path: srv/target/bookstore-exec.jar
37+
random-route: true
38+
buildpacks:
39+
- java_buildpack
40+
env:
41+
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 17.+ }}'
42+
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
43+
SPRING_PROFILES_ACTIVE: cloud
44+
services:
45+
- bookstore-hana
4646
```
4747
48-
The manifest describes the name of the application, the path where the application archive can be found and runtime type. In this tutorial Java Buildpack is used to deploy Spring Boot application from a single JAR archive using Java 17.
48+
The manifest describes the name of the application, the path where the application archive can be found and runtime type. In this tutorial the Java buildpack is used to deploy your Spring Boot application from a single JAR archive using Java 17.
4949
5050
The route of the application, meaning the HTTP endpoint where it will be available, will be randomized to prevent clashes with other application routes.
5151

tutorials/cp-cap-java-hana-db/cp-cap-java-hana-db.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Add an additional Maven dependency to your project. The dependency brings the ab
8585
</dependency>
8686
```
8787
88-
### Deploy database artefacts to SAP HANA
88+
### Deploy database artifacts to SAP HANA
8989
9090
9191
1. Go back to the terminal of SAP Business Application Studio and make sure that you are in the root of the bookstore project:
@@ -108,7 +108,7 @@ Add an additional Maven dependency to your project. The dependency brings the ab
108108
109109
3. Ensure your SAP HANA Cloud instance is started.
110110
111-
4. Create an SAP HANA service instance and implicitly push all artefacts to the database using:
111+
4. Create an SAP HANA service instance and implicitly push all artifacts to the database using:
112112
113113
```Shell/Bash
114114
cds deploy --to hana:bookstore-hana --store-credentials
@@ -138,7 +138,7 @@ When deploying the application to the cloud, Cloud Foundry will provide the cred
138138
```
139139
>The Java system property `-Dspring-boot.run.profiles=cloud` ensures that the default configuration using H2 as the database, which is still defined in the `application.yaml`, doesn't get activated.
140140
141-
You can observe the log line `Registered DataSource 'bookstore-hana'`, which indicate that the SAP HANA configuration was picked up.
141+
You can observe the log line `Registered DataSource 'ds-bookstore-hana'`, which indicate that the SAP HANA configuration was picked up.
142142
143143
3. Open the file `requests.http` and execute one of the requests that create an order, by choosing **Send Request** above it.
144144

tutorials/cp-cap-java-security-cf/cp-cap-java-security-cf.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ The XSUAA security descriptor that describes the roles for your application can
7878
---
7979
applications:
8080
- name: bookstore
81-
path: srv/target/bookstore-exec.jar
82-
random-route: true
83-
buildpacks:
84-
- java_buildpack
85-
env:
81+
path: srv/target/bookstore-exec.jar
82+
random-route: true
83+
buildpacks:
84+
- java_buildpack
85+
env:
8686
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 17.+ }}'
8787
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
8888
SPRING_PROFILES_ACTIVE: cloud
89-
services:
90-
- bookstore-hana
91-
- bookstore-xsuaa
89+
services:
90+
- bookstore-hana
91+
- bookstore-xsuaa
9292
```
9393
9494
With this, your application uses this instance of Authorization and Trust Management Service (XSUAA) to manage authentication of users for your application. You will create the instance with that name in the next step.
-199 KB
Loading

tutorials/cp-cap-java-security-local/cp-cap-java-security-local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In the previous tutorial you have added authentication to your application by ad
2828

2929
3. Observe that the response contains status `HTTP/1.1 401 `.
3030

31-
<!-- border -->![authentication required for HTTP request](authentication-required.png)
31+
<!-- border -->![The request without authentication header and it's response.](authentication-required.png)
3232

3333
4. To create an order, you need to provide credentials. For local development CAP has built-in mock users. Modify the request like follows:
3434

@@ -155,7 +155,7 @@ You will now add a user role `Administrators` to your application.
155155
additional:
156156
firstName: Sabine
157157
lastName: Autumnpike
158-
email: Sabine.Autumnpike@mail.com
158+
email: Sabine.Autumnpike@mail.com
159159
```
160160
161161
> You used the attribute `roles` to add the `Administrators` role to that user.

tutorials/cp-cap-java-service-reuse/cp-cap-java-service-reuse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ After defining the domain model and the services that you want to expose, you co
284284
285285
5. When you open the URL in a new tab, you will see a welcome page. To see the books data click on **Books** directly from the welcome page.
286286
287-
> Instead of clicking on the Books entry on the welcome page, you could simple add `odata/v4/BooksService/Books` to the URL.
287+
> Instead of clicking on the Books entry on the welcome page, you could simple add `/odata/v4/BooksService/Books` to the URL.
288288
289289
<!-- border -->![data for books entity](books-data.png)
290290
291-
6. To read the localized German example data, append the query parameter `?sap-language=de` to the URL. For example, `<APP_URL>/odata/v4/BooksService/Books?sap-language=de`. Try to switch the language between German (`de`) and English (`en`).
291+
6. To read the localized German example data, append the query parameter `?sap-locale=de` to the URL. For example, `<APP_URL>/odata/v4/BooksService/Books?sap-locale=de`. Try to switch the language between German (`de`) and English (`en`).
292292
293293
Great Job! You have successfully developed the bookstore application and reused your products service from the previous tutorial.
294294

0 commit comments

Comments
 (0)