Skip to content

Commit

Permalink
Merge pull request #163 from SoftwareAG/improvement/10.7.0/bugherd-525
Browse files Browse the repository at this point in the history
Fixed code block
  • Loading branch information
JoshuaAdemola authored Jan 5, 2022
2 parents 934312d + 5b4fe4c commit 70335b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/microservice-sdk/java-bundle/java-microservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public class App {
}
```

The code uses four annotations; three are part of the Spring Framework and one of the Cumulocity IoT Microservice SDK. The `@RestController` annotation marks the class as a controller where every method returns a domain object instead of a view. The `@RequestMapping` annotation ensures that HTTP requests to the <kbd>/service/<microservice-name>/hello</kbd> endpoint are mapped to the `greeting()` method. `@RequestParam` binds the value of the query string parameter <kbd>name</kbd> into the `you` parameter of the `greeting()` method. Refer to the [Spring Guides](https://spring.io/guides) for more details about building RESTful Web Services using the Spring Framework.
The code uses four annotations; three are part of the Spring Framework and one of the Cumulocity IoT Microservice SDK. The `@RestController` annotation marks the class as a controller where every method returns a domain object instead of a view. The `@RequestMapping` annotation ensures that HTTP requests to the <kbd>/service/&lt;microservice-name>/hello</kbd> endpoint are mapped to the `greeting()` method. `@RequestParam` binds the value of the query string parameter <kbd>name</kbd> into the `you` parameter of the `greeting()` method. Refer to the [Spring Guides](https://spring.io/guides) for more details about building RESTful Web Services using the Spring Framework.

Employing the `@MicroserviceApplication` annotation is a simple way to add the required behavior for Cumulocity IoT microservices including:

Expand Down

0 comments on commit 70335b1

Please sign in to comment.