Spring cloud data flow custom application properties

前端 未结 2 568
死守一世寂寞
死守一世寂寞 2020-12-22 02:46

I created a custom spring cloud data flow application. I would like to create a stream with it and put some application properties in it, as we can add for the provided appl

相关标签:
2条回答
  • 2020-12-22 03:28

    For the custom application properties, you can make sure if you follow Spring Boot configuration properties configuration correctly. You can see some of the examples from the out of the box apps here

    I am not sure which version of SCDF do you use. If you are on the release before SCDF 2.x, then the name of the whitelist properties needs to be spring-configuration-metadata-whitelist.properties as the whitelist properties file with the name dataflow-configuration-metadata-whitelist.properties is supported only from SCDF 2.x.

    Also, make sure to place the whitelist properties file into /META-INF directory under classpath (src/main/resources directory) for example here.

    Regarding the documentation, please follow the instructions mentioned here in the SCDF documentation.

    0 讨论(0)
  • 2020-12-22 03:46

    I could do the job thanks to this post: Spring Cloud Dataflow Kubernetes get properties of jar from dockerfile The way I registered the app was wrong. Now, I add the companion metadata URI and it works

    0 讨论(0)
提交回复
热议问题