Skip to content

Commit

Permalink
DEVX-496 fix spring-dynatrace-oneagent example
Browse files Browse the repository at this point in the history
  • Loading branch information
lojzatran committed Dec 4, 2024
1 parent 51253a4 commit 4f27df5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/spring-dynatrace-oneagent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.4'
id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.0'
}

Expand All @@ -20,7 +20,7 @@ repositories {

ext {
versions = [
commercetools: "17.3.0",
commercetools: "17.20.0",
]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public String pop(Model model, HttpSession session) throws ExecutionException, I
}

@GetMapping("/cart")
public String cart(Model model, HttpSession session) {
public String cart(Model model, HttpSession session) throws ExecutionException, InterruptedException {
final CompletableFuture<Cart> cart = new CartRepository(apiRoot, session).meCart();
model.addAttribute("cart", cart);
model.addAttribute("cart", cart.get());
return "mycart/index";
}

Expand Down

0 comments on commit 4f27df5

Please sign in to comment.