Commit Graph

11786 Commits

Author SHA1 Message Date
Stephane Nicoll d4f87ae74e Polish 2017-04-28 10:07:28 +02:00
Stephane Nicoll 461cca3269 Merge pull request #9020 from artembilan:Spring_Kafka_2.0.0.M1
* pr/9020:
  Upgrade to Spring Kafka 2.0.0.M1
2017-04-28 09:24:04 +02:00
Artem Bilan 8e68511eb3 Upgrade to Spring Kafka 2.0.0.M1
Closes gh-9020
2017-04-28 09:23:47 +02:00
Phillip Webb 86ce474108 Fix malformed javadoc
See gh-9000
2017-04-27 17:47:48 -07:00
Madhura Bhave ac9f380c55 Test binding of Set
Add a test to ensure that the new binder can bind correctly to a
Set.

Closes gh-1415
2017-04-27 15:23:45 -07:00
Phillip Webb 25f0b3482c Rework configuration properties support
Closes gh-9000
2017-04-27 14:34:41 -07:00
Madhura Bhave 4e3d280378 Delete deprecate relaxed binder code
Remove the deprecated relaxed binder code that has now been replaced
with the configuration properties binder.

Closes gh-9000
2017-04-27 14:34:30 -07:00
Madhura Bhave 5edb1194f5 Test binding of Map<String, String[]>
Add a test to ensure that the new binder can bind correctly to a
Map<String,String[]>.

Closes gh-3789
2017-04-27 14:34:29 -07:00
Madhura Bhave 6184e4154e Test correct binding in '/info' endpoint
Add a test to ensure that the updated configuration properties work
correctly binds environment sources in the `/info` endpoint.

Closes gh-7388
2017-04-27 14:34:29 -07:00
Madhura Bhave e3ea7a7d93 Test binding of environment variables to maps
Add a test case to show that the updated configuration properties binder
correctly binds environment variables to complex maps.

Closes gh-8902
2017-04-27 13:59:25 -07:00
Madhura Bhave 2e83de58ec Test placeholder expansion supports relaxed names
A test to ensure that the updated configuration properties support
correctly expands placeholders using mapped properties.

Prior to the updated support an `application.properties` file of the
form:

	my.prefix.some-url=http://github.com
	my.prefix.login-url=${my.prefix.some-url}/login

Would not correctly expand the placeholder against the environment
variable `MY_PREFIX_SOME_URL`

Closes gh-2496
2017-04-27 13:59:25 -07:00
Phillip Webb df9d2bc9f4 Remove @ConditionalOnProperty 'relaxed' attribute
Remove the `relaxed` attribute from `@ConditionalOnProperty` and instead
rely on the direct configuration property source relaxed name support.

Closes gh-9003
2017-04-27 13:59:25 -07:00
Madhura Bhave fa45cd5772 Extended BindFailureAnalyzer for new exceptions
Extend `BindFailureAnalyzer` to support the exceptions thrown by the new
configuration properties `Binder`. Origin information is now also
reported when available.

Closes gh-8934
2017-04-27 13:59:25 -07:00
Madhura Bhave 829ab59757 Use new configuration properties in samples
Update `spring-boot-samples` to use the new configuration properties
support.

See gh-9000
2017-04-27 13:59:25 -07:00
Madhura Bhave 7efbedc0dc Use new configuration properties in devtools
Update `spring-boot-devtools` to use the new configuration properties
support.

See gh-9000
2017-04-27 13:59:25 -07:00
Madhura Bhave 866cf1dda7 Use new configuration properties in actuator
Update `spring-boot-actuator` to use the new configuration properties
support.

See gh-9000
2017-04-27 13:59:25 -07:00
Madhura Bhave 69ab2e462e Use new configuration properties in autoconfigure
Update `spring-boot-autoconfigure` to use the new configuration
properties support.

See gh-9000
2017-04-27 13:59:25 -07:00
Madhura Bhave c0d4a771c9 Use new configuration properties in spring-boot-test
Update `spring-boot-test` to use the new configuration properties
support.

See gh-9000
2017-04-27 13:59:25 -07:00
Madhura Bhave d4ef523e64 Use new configuration properties in spring-boot
Update `spring-boot` to use the new configuration properties support.

See gh-9000
2017-04-27 13:59:25 -07:00
Phillip Webb 834aa09300 Remove ConfigurationProperySource
Remove `ConfigurationProperySource` from `PropertySourcesPropertyValues`
so that the deprecated code to continues to work.

See gh-4910
2017-04-27 13:59:25 -07:00
Phillip Webb 16f9ef4f6a Attach ConfigurationPropertiesSource
Update `SpringApplication` to automatically attached the
`ConfigurationPropertiesSource` when a `SpringApplication` runs.

See gh-4910
2017-04-27 13:59:25 -07:00
Phillip Webb 813128a410 Add support for configuration properties binding
Create a new `Binder` class specifically designed to bind properties
from one or more `ConfigurationPropertySources` to an object.

The binder provides a replacement for `RelaxedBinder` and attempts to
fix the limitations of the previous solution.

Closes gh-8868
2017-04-27 13:59:25 -07:00
Phillip Webb a5651b75de Create ConfigurationPropertySource abstraction
Add a new abstraction that represents a source for configuration
properties. The new source is similar to the `Environment` abstraction
provided by Spring Framework but follows a stricter set of rules.

The `ConfigurationPropertySource` provides a uniform view onto a source
and will help to move responsibility for accessing properties in a
"relaxed" way away from the caller.

The `ConfigurationPropertyName` class enforces strict naming rules
that callers must follow when accessing properties. Configuration
names are lowercase, dot separated and may contain dashes. In
addition "indexed" name elements may be defined by using square
brackets.

Mapping is provided to existing Spring PropertySources implemented with
the relaxed rules that users are used to. For example the configuration
property `server.local-host` can still be written in a property files
as `server.localHost` or in an environment variable as SERVER_LOCALHOST.

Closes gh-4910
2017-04-27 13:59:25 -07:00
Phillip Webb dbc7e938c8 Restructor and improve Origin support
Move the `Origin` and related classes from `o.s.boot.env` to
`o.s.boot.orgin` and extend support. The concept of an origin can now
be used outside of just the Spring Environment abstraction.

Closes gh-9001
2017-04-27 13:59:25 -07:00
Phillip Webb b10e2f3a05 Deprecate relaxed property concepts
Deprecate `RelaxedDataBinder`, `RelaxedPropertyResolver` and related
classes in preparation for the updated configuration properties binder
work.

See gh-9000
2017-04-27 13:59:25 -07:00
Phillip Webb 39b33d30e1 Rework SpringApplication `sources` property
Update `SpringApplication` so that the `sources` property is
independent to the primary source provided on construction.

Prior to this commit the sources property was a little unusual in that
calling set would add to the existing collection.

Closes gh-8910
2017-04-27 13:59:07 -07:00
Phillip Webb 82b839e4fb Polish OnWebApplicationCondition message 2017-04-27 13:58:52 -07:00
Phillip Webb 102da8b3c6 Polish 2017-04-27 13:58:30 -07:00
Andy Wilkinson 91fe040586 Start building against Spring Social LinkedIn 2.0 snapshots
See gh-9019
2017-04-27 20:08:10 +01:00
Phillip Webb 45dd9f7144 Polish 2017-04-27 12:04:02 -07:00
Phillip Webb 42e24136ef Drop `spring-social-web-thymeleaf3`
Drop `spring-social-web-thymeleaf3` dependency since it's been merged
into `spring-social-web` as of Spring Social 2.0.

Fixes gh-9017
2017-04-27 11:29:56 -07:00
Phillip Webb 44b4d82e4f Merge pull request #9011 from vpavic/align-session-2.0
* pr/9011:
  Remove Spring Session GemFire dependency
  Remove Spring Session Mongo support
2017-04-27 11:03:00 -07:00
Vedran Pavic 0a64b96b83 Remove Spring Session GemFire dependency
Remove Spring Session GemFire dependency since it is
no longer supported in Spring Session 2.0.

Closes gh-9011
2017-04-27 11:02:34 -07:00
Vedran Pavic 33dd9d6d84 Remove Spring Session Mongo support
Remove auto-configuration support for Spring Session Mongo since it is
no longer supported in Spring Session 2.0.

See gh-9011
2017-04-27 10:59:22 -07:00
Phillip Webb 30eba451d9 Merge branch '1.5.x' 2017-04-27 10:17:33 -07:00
Phillip Webb 4d8584eba8 Merge branch '1.4.x' into 1.5.x 2017-04-27 10:15:54 -07:00
Phillip Webb df82060cad Formatting 2017-04-27 10:12:31 -07:00
Stephane Nicoll 800eb010b1 Change the default JDBC connection pool to Hikari
Closes gh-6013
2017-04-27 16:11:45 +02:00
Stephane Nicoll 2e491dfa9c Merge branch '1.5.x' 2017-04-27 14:30:58 +02:00
Stephane Nicoll 3dc9b125d7 Merge branch '1.4.x' into 1.5.x 2017-04-27 14:30:40 +02:00
Stephane Nicoll 703a6dc056 Prevents BasicErrorControllerIntegrationTest to start another server
`BasicErrorControllerIntegrationTest` is handling the context in each test
and yet it starts a useless test via `@SpringBootTest`. This commit
removes the useless runner and associated annotations.
2017-04-27 14:26:50 +02:00
Stephane Nicoll df388aaaf9 Polish doc 2017-04-27 14:19:16 +02:00
Stephane Nicoll 227bcf44da Create jetty access log file in the temp directory 2017-04-27 14:19:08 +02:00
Stephane Nicoll 66298d85c4 Fix build 2017-04-27 14:12:32 +02:00
Stephane Nicoll 7b0645ff22 Merge pull request #8971 from vpavic:gh-7872
* pr/8971:
  Polish "Do not expose `exception` error attribute by default"
  Do not expose `exception` error attribute by default
2017-04-27 11:20:33 +02:00
Stephane Nicoll e9abe3fcca Polish "Do not expose `exception` error attribute by default"
Closes gh-8971
2017-04-27 11:15:44 +02:00
Vedran Pavic afe0c6f432 Do not expose `exception` error attribute by default
See gh-8971
2017-04-27 10:57:04 +02:00
Stephane Nicoll 605ea487c0 Merge pull request #9002 from vpavic:gh-8560
* pr/9002:
  Make Audit events MVC endpoint `after` parameter required
2017-04-27 10:55:40 +02:00
Vedran Pavic 720e801a76 Make Audit events MVC endpoint `after` parameter required
Closes gh-9002
2017-04-27 10:54:45 +02:00
Stephane Nicoll b426bba169 Merge pull request #8819 from olamy:feature/jetty_accesslog
* pr/8819:
  Add support for configuring Jetty's request log via the environment
  Add support for configuring Jetty's request log via the environment
2017-04-27 10:47:04 +02:00