You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Cloud DataFlow v1.3.1.RELEASE UI不渲染白名单属性问题

我在本地运行Spring Cloud DataFlow v1.3.1.RELEASE,创建了一个小型示例processor应用来复现遇到的问题。这个Spring Boot应用包含两个@ConfigurationProperties类:

DemoApplicationProperties

@ConfigurationProperties
@Validated
public class DemoApplicationProperties {
    /**
     * The first name of the person.
     */
    private String firstName;
    /**
     * The last name of the person.
     */
    private String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}

DemoApplicationPropertiesTwo

@ConfigurationProperties
@Validated
public class DemoApplicationPropertiesTwo {
    /**
     * The person's middle name.
     */
    private String middleName;
    /**
     * The date of birth.
     */
    private String birthdate;

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    public String getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(String birthdate) {
        this.birthdate = birthdate;
    }
}

此外,我编写了单元测试以验证BootApplicationConfigurationMetadataResolver是否能正确解析所有白名单类,测试代码如下:

public class WhiteListTests {
    private BootApplicationConfigurationMetadataResolver metadataResolver;

    @Test
    public void testMetadataResolver() {
        metadataResolver = new BootApplic...

内容的提问来源于stack exchange,提问作者Channing Jackson

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 03:56:01