Spring Cloud Dataflow应用程序属性以显示数据流Ui中的下拉列表

时间:2017-05-03 06:45:23

标签: spring spring-cloud spring-cloud-stream spring-cloud-dataflow

我想知道如何在这里指定一个属性,以便我可以在注册我的应用程序时获得Spring Cloud Dataflow ui的下拉列表。我正在添加我的应用模式的screehot

this is my modal

这是我的应用的属性文件

import java.nio.charset.Charset;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.*;

@ConfigurationProperties("filestream")
public class FileStreamProperties {

/* filePath for file stream */
private String filePath;
private List<String> list = new ArrayList<String>().add("option1");
/* delayMillis the delay between checks of the file for new content in milliseconds */
private long delayMillis = 1000;

private long bufferSize = 4096;
private Charset charset = Charset.defaultCharset();


public String getFilePath() {
    return filePath;
}

public void setFilePath(String filePath) {
    this.filePath = filePath;
}

public long getDelayMillis() {
    return delayMillis;
}

public void setDelayMillis(long delayMillis) {
    this.delayMillis = delayMillis;
}

public long getBufferSize() {
    return bufferSize;
}

public void setBufferSize(long bufferSize) {
    this.bufferSize = bufferSize;
}

public Charset getCharset() {
    return charset;
}

public void setCharset(Charset charset) {
    this.charset = charset;
}

}

0 个答案:

没有答案