Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何用Java代码监听super-diamond更新事件? #27

Open
Felixmao opened this issue Jan 31, 2018 · 1 comment
Open

如何用Java代码监听super-diamond更新事件? #27

Felixmao opened this issue Jan 31, 2018 · 1 comment

Comments

@Felixmao
Copy link

super-diamond参数更新后点击发布,配置也就刷新,请问用java如何监听该事件

@xiaolong7713
Copy link

	PropertiesConfiguration configuration = PropertiesConfigurationFactoryBean.getPropertiesConfiguration();
	configuration.addConfigurationListener(new ConfigurationListener() {

		@Override
		public void configurationChanged(ConfigurationEvent event) {
			System.out.println(event.getPropertyName() + "-change-" + event.getPropertyValue());
		}
	});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants