Skip to content

Commit c24ed0f

Browse files
authored
fix pr issues
1 parent 8e92887 commit c24ed0f

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

articles/azure-cache-for-redis/cache-java-get-started.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ Clone the repo [Java quickstart](https://github.com/Azure-Samples/azure-cache-re
3737
## Create a new Java app
3838

3939
Using Maven, generate a new quickstart app:
40-
```xml
41-
mvn archetype:generate \
42-
-DarchetypeGroupId=org.apache.maven.archetypes \
43-
-DarchetypeArtifactId=maven-archetype-quickstart \
44-
-DarchetypeVersion=1.3 \
45-
-DinteractiveMode=false \
46-
-DgroupId=example.demo \
47-
-DartifactId=redis-jedis-test \
48-
-Dversion=1.0
49-
```
40+
41+
```xml
42+
mvn archetype:generate \
43+
-DarchetypeGroupId=org.apache.maven.archetypes \
44+
-DarchetypeArtifactId=maven-archetype-quickstart \
45+
-DarchetypeVersion=1.3 \
46+
-DinteractiveMode=false \
47+
-DgroupId=example.demo \
48+
-DartifactId=redis-jedis-test \
49+
-Dversion=1.0
50+
```
5051

5152
1. Change to the new **redis-jedis-test** project directory.
5253

articles/azure-cache-for-redis/cache-java-redisson-get-started.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Open the *pom.xml* file and add a dependency for [Redisson](https://github.com/r
7272
</dependency>
7373
```
7474

75-
7675
### [Access Key Authentication](#tab/accesskey)
7776

7877
```xml
@@ -81,7 +80,7 @@ Open the *pom.xml* file and add a dependency for [Redisson](https://github.com/r
8180
<artifactId>redisson</artifactId>
8281
<version>3.27.0</version> <!-- {x-version-update;org.redisson:redisson;external_dependency} -->
8382
</dependency>
84-
```
83+
```
8584

8685
---
8786

@@ -91,6 +90,7 @@ Open *App.java* and replace the code with the following code:
9190

9291

9392
### [Microsoft Entra ID Authentication (recommended)](#tab/entraid)
93+
9494
```java
9595
package example.demo;
9696

@@ -230,9 +230,6 @@ public class App {
230230

231231

232232

233-
```java
234-
235-
236233
This code shows you how to connect to an Azure Cache for Redis instance using Microsoft Entra ID with the JCache API support from the Redisson client library. The code also stores and retrieves a string value in the cache. For more information on JCache, see the [JCache specification](https://jcp.org/en/jsr/detail?id=107).
237234

238235
Save *App.java*.

0 commit comments

Comments
 (0)