项目作者: daggerok

项目描述 :
This example was prepared for one of my stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration https://stackoverflow.com/questions/56517391/functional-programming-model-bean-definition-and-spring-cloud-function-spring
高级语言: Java
项目地址: git://github.com/daggerok/spring-cloud-function-stream-integration.git
创建时间: 2019-06-09T22:26:20Z
项目社区:https://github.com/daggerok/spring-cloud-function-stream-integration

开源协议:MIT License

下载


spring-cloud-function-stream-integration CI

This example was prepared for one of my stackoverflow question: Functional programming model bean definition and spring-cloud-function + spring-cloud-stream integration

  1. docker run -d --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7.15-management-alpine
  2. ./mvnw spring-boot:start
  3. http :8080 string=1
  4. http :8080 string=2
  5. http :8080 string=0
  6. # or
  7. http :8080/process string=1
  8. http :8080/process string=2
  9. http :8080/process string=0
  10. # and
  11. echo '[0,1,1,2,3,5,8,13,21,34,55]' | http :8080/doubleIt
  12. # or
  13. curl -isS 0:8080/doubleIt -d '[0,1,1,2,3,5,8,13,21,34,55]' -H'Content-Type:application/json' ; echo
  14. # and
  15. echo 3 | http post :8080/produceIt
  16. # or
  17. curl -isS 0:8080/produceIt -d 3 -H'Content-Type:application/json' ; echo
  18. # and
  19. echo '{"integer":-123}' | http post :8080/logIt
  20. # or
  21. curl -isS 0:8080/logIt -d '{"integer":-123}' -H'Content-Type:application/json' ; echo
  22. ./mvnw spring-boot:stop
  23. docker stop rabbitmq

RTFM