From 2fdcb303d61ce51a49b8921314051a7d58b79f66 Mon Sep 17 00:00:00 2001
From: buildmaster spring-cloud-config-monitor
The change detection can be strategized.
However, by default, it looks for changes in files that match the application name (for example, foo.properties is targeted at the foo application, while application.properties is targeted at all applications).
The strategy to use when you want to override the behavior is PropertyPathNotificationExtractor, which accepts the request headers and body as parameters and returns a list of file paths that changed.
The default configuration works out of the box with Github, Gitlab, Gitea, Gitee, Gogs or Bitbucket.
-In addition to the JSON notifications from Github, Gitlab, Gitee, or Bitbucket, you can trigger a change notification by POSTing to /monitor with form-encoded body parameters in the pattern of path={name}.
-Doing so broadcasts to applications matching the {name} pattern (which can contain wildcards).
![]() | Note |
|---|---|
The |
![]() | Note |
|---|---|
The default configuration also detects filesystem changes in local git repositories. In that case, the webhook is not used. However, as soon as you edit a config file, a refresh is broadcast. |