Skip to content

Commit 8100632

Browse files
Oblioolegz
authored andcommitted
fixes so the sample app runs
Signed-off-by: Oblio <oblio.leitch@gmail.com>
1 parent 6aaf146 commit 8100632

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

spring-cloud-function-samples/function-sample-azure-web/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<java.version>17</java.version>
2121

2222
<spring-boot-thin-layout.version>1.0.31.RELEASE</spring-boot-thin-layout.version>
23-
<spring-cloud-function-adapter-azure-web.version>4.1.0-SNAPSHOT</spring-cloud-function-adapter-azure-web.version>
23+
<spring-cloud-function-adapter-azure-web.version>5.0.2-SNAPSHOT</spring-cloud-function-adapter-azure-web.version>
2424

2525
<!-- 2. You must set the Spring Boot start class for the Azure Function runtime to be able to find the entry point. -->
2626
<start-class>com.example.azure.web.AzureWebDemoApplication</start-class>

spring-cloud-function-samples/function-sample-azure-web/src/main/java/com/example/azure/web/CountryController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Country addCountry(@RequestBody Country country) {
5959
}
6060

6161
@GetMapping("/countries/{id}")
62-
public Country countryById(@PathVariable Integer id) {
62+
public Country countryById(@PathVariable Long id) {
6363
return this.countryRepository.findById(id).get();
6464
}
6565
}

spring-cloud-function-samples/function-sample-azure-web/src/main/java/com/example/azure/web/CountryRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
*
2323
* @author Christian Tzolov
2424
*/
25-
public interface CountryRepository extends JpaRepository<Country, Integer> {
26-
}
25+
public interface CountryRepository extends JpaRepository<Country, Long> {
26+
}

0 commit comments

Comments
 (0)