spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

how to custom dataflow without using starter project

Open Jaware opened this issue 10 years ago • 5 comments

i have followed the guide from dataflow 1.0.1 doc,however the custom properties can not show on the page,only using app-starters like @Import(org.springframework.cloud.stream.app.file.sink.FileSinkConfiguration.class) can show the custom properties on the ui page.

Jaware avatar Sep 28 '16 06:09 Jaware

image

configuration-properties.classes=com.example.FileSinkProperties

@SpringBootApplication @EnableBinding(Channel.class) @EnableConfigurationProperties(FileSinkProperties.class) public class Application {

public static void main(String[] args) { SpringApplication.run(Application.class, args); } }

image

Jaware avatar Sep 28 '16 06:09 Jaware

I think this has got something to do with white-listing of properties. You can refer more detail here

ilayaperumalg avatar Sep 28 '16 06:09 ilayaperumalg

or, do you mean you followed the same content but still those properties are not visible?

ilayaperumalg avatar Sep 28 '16 06:09 ilayaperumalg

Also, make sure you have this dependency:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

in your app to make sure configuration metadata is generated.

ilayaperumalg avatar Sep 28 '16 06:09 ilayaperumalg

thanks,the dependency works,but docs do not show this very important point,which is very bad!

Jaware avatar Sep 29 '16 02:09 Jaware