Skip to content

[BUG]Solon 的 @BindProps 不支持通过父对象自动绑定嵌套对象 #425

Description

@tom055

你好大佬,下面这种方式,无法绑定VertxWsProperty stomp;对象的属性值,是不支持吗?solon:3.10.7
非常期待你的回复,谢谢~~

@Data
@Component
@BindProps(prefix = "vertx")
public class VertxProperty {
    VertxWsProperty stomp;
    Boolean cluster;
}

@Getter
@Setter
public class VertxWsProperty {
    private int port = 18081;
    private String path = "/ws/stomp";
}

app.yml

vertx:
  cluster: false
  stomp:
    port: 18081
    path: /ws/stomp

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions