Skip to content

andrew-su/debug-spring-cloud-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debug-spring-cloud-function

Issue: Unable to change the packages to scan for function

  1. Build application

    make application
    
  2. Run application

    java -jar application/target/*.jar
    
  3. 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

  1. Run application specifying new packages to scan

    java -jar application/target/*.jar --spring.cloud.function.scan.packages=com.example.newfunc
    
  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published