Skip to content

spring configuration #71

@zero2hj

Description

@zero2hj

@configuration
@ConfigurationProperties(prefix = "inspect")
@RefreshScope
@DaTa

@EventListener
public void ruleChange(RefreshScopeRefreshedEvent event) {
    System.out.println(inspectrules);
}

// default use setter to bind properties

// refreshscope need an client fire like nacos or acturator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions