function-sample-azure cleanup

Cleaned up pom to use java.version instead of the compiler.source and
compiler.target
Added version properties for azure-functions-java-library and
azure-functions-maven-plugin
Updated the properties to be the latest recommended from Azure Functions
Used stagingDirectory in maven-resources-plugin
Updated README.adoc to say port 7071 instead of 8080
This commit is contained in:
Anthony Lofton
2019-12-12 12:54:01 -06:00
parent 0f38ea47b8
commit 75019ab281
2 changed files with 25 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ You can run this sample locally, just like the other Spring Cloud Function sampl
mvn spring-boot:run
----
and `curl -H "Content-Type: application/json" localhost:8080/uppercase -d '{"value": "hello foobar"}'`.
and `curl -H "Content-Type: application/json" localhost:7071/uppercase -d '{"value": "hello foobar"}'`.
Given that our function takes POJO `Function<Foo, Bar> uppercase()` and it's input is JSON we need to
provide the appropriate content-type (in this case `application/json`).