Search code examples
spring-cloud-dataflow

Permanently register app in Spring Data flow application


I have integrated Spring Data flow and uploaded application jar into the panel. However, whenever I restart the dataflow application I loose the app mapping with JAR. How can I permanently have it in spring-data-flow

I tried various places to register the app permanently but all in vain.

Thanks, Dhruv


Solution

  • You need to add data source mapping to spring-data-flow application.

    By default, it goes for embedded H2 database and hence the deployment gets lost.

    Once I added the DB configuration. It was resolved.

    Add the following lines in application.properties for mysql

    server.port=8081
    spring.datasource.url= jdbc:mysql://localhost:3306/app_batch
    spring.datasource.username=root 
    spring.datasource.password= 
    spring.datasource.driver-class-name=com.mysql.jdbc.Driver 
    spring.jpa.hibernate.ddl-auto=none