Commit Graph

11778 Commits

Author SHA1 Message Date
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
Stephane Nicoll
f5db75792e Add support for configuring Jetty's request log via the environment
Closes gh-8819
2017-04-27 10:46:38 +02:00
olivier lamy
ce892a06e4 Add support for configuring Jetty's request log via the environment
See gh-8819
2017-04-26 19:35:43 +02:00
Stephane Nicoll
45f76965f6 Rename cassandra bean names
Closes gh-8982
2017-04-26 15:47:20 +02:00
Stephane Nicoll
3477b02cb4 Merge pull request #8568 from eddumelendez:gh-8052
* pr/8568:
  Polish "Add reactive support for Spring Data Cassandra"
  Add reactive support for Spring Data Cassandra
2017-04-26 15:38:51 +02:00
Stephane Nicoll
47037d5227 Polish "Add reactive support for Spring Data Cassandra"
Closes gh-8568
2017-04-26 15:31:01 +02:00
Eddú Meléndez
abd35f041b Add reactive support for Spring Data Cassandra
See gh-8568
2017-04-26 15:31:01 +02:00
Andy Wilkinson
9c65888a54 Upgrade to Jackson 2.9.0.pr3
Closes gh-8990
2017-04-26 13:52:36 +01:00
Brian Clozel
117310924e Reduce number of managed Netty dependencies
Now that reactor-netty has a strict set of transitive dependencies, this
commit refactors the managed dependencies to only list the required
ones. `netty-all` is still managed to avoid conflicts when pulled by
other libraries.

Fixes gh-8553
2017-04-26 10:25:59 +02:00