Commit Graph

287 Commits

Author SHA1 Message Date
spencergibb
aadfc625f2 Removes deprecated method use 2020-12-20 13:35:20 -05:00
spencergibb
70a63018b2 Uses BindHandler if registered in bootstrap.
Spring Cloud Commons now creates a TextEncryptorBindHandler that can decrypt properties when using a Binder. This allows configuration read in ConfigData methods to be decrypted.

Fixes gh-688
2020-12-20 11:49:54 -05:00
spencergibb
c75a6c96bd Check if class is registered already.
In ConfigData promotion (promoting a bean from bootstrap to the application context) check to see if there is a bean of that name before registering again.

Fixes gh-687
2020-12-14 15:40:32 -05:00
buildmaster
be3ddb742e Going back to snapshots 2020-12-11 22:10:00 +00:00
buildmaster
dce1c76ca4 Update SNAPSHOT to 3.0.0-RC1 2020-12-11 22:08:47 +00:00
buildmaster
a66800b791 Going back to snapshots 2020-12-01 22:49:46 +00:00
buildmaster
e20b4c7c43 Update SNAPSHOT to 3.0.0-M6 2020-12-01 22:48:36 +00:00
buildmaster
6c9d9b94a8 Going back to snapshots 2020-11-17 20:44:56 +00:00
buildmaster
527f63d6e3 Update SNAPSHOT to 3.0.0-M5 2020-11-17 20:43:42 +00:00
spencergibb
16dc8c3c91 Polishes parseLocation 2020-10-16 15:28:06 -04:00
spencergibb
59e54402e6 Updates to use updated ConfigData apis 2020-10-16 15:22:00 -04:00
spencergibb
46f29724ad Updates to use updated ConfigData apis 2020-10-16 15:15:24 -04:00
buildmaster
8015fe2218 Going back to snapshots 2020-10-03 14:00:36 +00:00
buildmaster
3369c2d6a7 Update SNAPSHOT to 3.0.0-M4 2020-10-03 13:59:12 +00:00
spencergibb
b113cdaf85 polish 2020-09-22 12:29:03 -04:00
spencergibb
5e7c2ba6ee Adds support for config discovery in ConfigData.
ConsulConfigServerBootstrapper.java is registered in spring.factories

The bootstrapper registers an ConfigServerInstanceProvider.Function that uses ConsulDiscoveryClient
2020-09-21 16:06:32 -04:00
spencergibb
b7454c6302 Dedupes logic between ConfigData and PropertySourceLocator.
Moves logic common to the two implementations to ConsulPropertySources.java
2020-09-18 16:37:14 -04:00
buildmaster
deea57465e Bumping versions 2020-09-18 12:33:40 +00:00
spencergibb
7042018d42 Updates ConsulBootstrapper with more general helper. 2020-09-17 18:11:04 -04:00
spencergibb
a98cde9bdb Updates tests to ignore registering beans 2020-09-17 11:01:56 -04:00
Spencer Gibb
247f21cc05 Uses new Bootstrapper interface to allow config data customization. (#675) 2020-09-17 10:57:39 -04:00
spencergibb
249285ae11 Formatting 2020-09-17 10:53:40 -04:00
spencergibb
59507ee8bc Optimizes isResolvable() only bind with correct prefix. 2020-09-11 09:57:37 -04:00
buildmaster
9cbbf5a783 Bumping versions 2020-09-10 12:34:30 +00:00
spencergibb
4ac6744e6e Moves defaulting app name to loadConfigProperties.
Fixes NPE if locationUri is null.

Various polishing.
2020-09-09 23:27:42 -04:00
spencergibb
d723dcbe31 Adds support for paths in ConfigData
Now `consul:myhost:8501/mypath1;/mypath2;/mypath3` will use the paths separated by semicolon (;) instead of automatically generating paths. `consul:myhost:8501` or `consul:` will automatically generate paths from ConsulConfigProperties and active profiles.
2020-09-09 22:42:42 -04:00
spencergibb
c0cb7717c8 Only create instances in the supplier 2020-09-09 16:57:05 -04:00
spencergibb
6a7acdc3c7 Adds todo 2020-09-09 16:36:19 -04:00
spencergibb
99e3ecac17 Adds support for spring.config.import=consul:host:port 2020-09-09 16:34:46 -04:00
Spencer Gibb
989485a4e5 Adds support for spring.config.import=consul: (#672) 2020-09-09 16:16:52 -04:00
spencergibb
e94f45663a Merge branch '2.2.x' 2020-09-09 12:54:47 -04:00
Spencer Gibb
50c74c9eba Testcontainers support (#624)
Testcontainers functionality is in ConsulTestcontainers

This allows for use either by an ApplicationContextInitializer or statically.

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
2020-09-09 12:41:56 -04:00
spencergibb
54c121ab1e Updates tests to use use-legacy-processing property 2020-08-07 17:11:57 -04:00
buildmaster
3e62d28564 Bumping versions to 2.2.5.BUILD-SNAPSHOT after release 2020-07-31 20:58:56 +00:00
buildmaster
a0447a7bdf Going back to snapshots 2020-07-31 20:58:55 +00:00
buildmaster
0783bca0e9 Update SNAPSHOT to 2.2.4.RELEASE 2020-07-31 20:56:45 +00:00
buildmaster
7cf89293cf Going back to snapshots 2020-07-23 18:29:28 +00:00
buildmaster
9362d83bf8 Update SNAPSHOT to 3.0.0-M3 2020-07-23 18:28:17 +00:00
spencergibb
c2ede3e7cc Adds junit-vintage-engine 2020-06-08 11:29:10 -04:00
buildmaster
a352eb56bd Going back to snapshots 2020-05-29 18:43:33 +00:00
buildmaster
451c2c72cd Update SNAPSHOT to 3.0.0-M2 2020-05-29 18:42:31 +00:00
buildmaster
3f2892eab1 Bumping versions to 2.2.4.BUILD-SNAPSHOT after release 2020-05-28 17:59:50 +00:00
buildmaster
ed5440ba12 Going back to snapshots 2020-05-28 17:59:50 +00:00
buildmaster
099a30b265 Update SNAPSHOT to 2.2.3.RELEASE 2020-05-28 17:57:03 +00:00
Spencer Gibb
9712a5a983 formatting 2020-04-27 12:43:20 -04:00
buildmaster
c55a5f1d33 Bumping versions 2020-04-17 03:16:14 +00:00
Spencer Gibb
d662e2edbe Moves back to assertThrows 2020-04-16 10:40:42 -04:00
Spencer Gibb
62b3fa04aa Merge branch '2.2.x' 2020-04-16 10:38:57 -04:00
Spencer Gibb
c5959c00ad removes commented out code 2020-04-16 10:37:17 -04:00
Spencer Gibb
3336018c7f Move to try/catch for test 2020-04-16 10:29:12 -04:00