Issue: Unable to change the packages to scan for function
-
Build application
make application
-
Run application
java -jar application/target/*.jar
-
Make a request
curl -H "Content-Type: text/plain" -d Andrew -i -w'\n' localhost:8080/tired
Here we see that it works.
Now we can try to do this again but change the packages to scan for function
-
Run application specifying new packages to scan
java -jar application/target/*.jar --spring.cloud.function.scan.packages=com.example.newfunc
-
Make a request
curl -H "Content-Type: text/plain" -d Andrew -i -w'\n' localhost:8080/happy
Here we see it still invokes the tired
function.