Commit Graph

11816 Commits (d6099bafa35b53e4e01a51aa7fa9414c3845e144)
 

Author SHA1 Message Date
Phillip Webb d6099bafa3 Reduce ConfigurationPropertyName garbage
Update the `ConfigurationPropertyNameBuilder` to reduce the number of
objects created.

Fixes gh-9022
8 years ago
Phillip Webb 19f166a56f Delete remaining old `bind` classes
Remove the last deprecated class from `org.springframework.boot.bind`

See gh-9000
8 years ago
Phillip Webb 3f71b8453f Migrate missed tests to new Binder
Migrate a few tests that were missed to use the new `Binder`.

See gh-9000
8 years ago
Phillip Webb 528d776d2b Polish 8 years ago
Madhura Bhave 0759652b24 Tests for missing placeholders during binding
Add a test to ensure that that there is a hard failure when trying to
bind properties with missing placeholders.

Closes gh-8693
8 years ago
Phillip Webb 76593a3806 Merge branch '1.5.x' 8 years ago
Phillip Webb 72813a47e7 Polish 8 years ago
Phillip Webb 76ee2f401c Polish 8 years ago
Andy Wilkinson 1ee9653f7c Group tasks and provide descriptions for tasks and configurations
Closes gh-8817
8 years ago
Phillip Webb 4db4c81b9b Polish 8 years ago
Brian Clozel 3cc0f7b70d Document embedded web server refactoring
Closes gh-8532
8 years ago
Michael J. Simons 4a58e87201 Remove references to *EmbeddedServletContainerFactory
See gh-8532
8 years ago
Michael J. Simons 0436070b98 Fix docs howto customize the embedded webserver
This reflects the changes from 67556ba8.
See gh-8532.
8 years ago
Andy Wilkinson 762a13e84f Configure assemble to depend upon bootJar or bootWar
Closes gh-8824
8 years ago
Andy Wilkinson 0a8494ec74 Merge branch '1.5.x' 8 years ago
Andy Wilkinson df05aa4701 Merge branch '1.4.x' into 1.5.x 8 years ago
Andy Wilkinson bd95ad6430 Upgrade to Spring Restdocs 1.1.3.RELEASE
Closes gh-9040
8 years ago
Andy Wilkinson 5291fb5ff7 Upgrade to Hsqldb 2.3.5
Closes gh-9039
8 years ago
Andy Wilkinson 344255807b Upgrade to Jaybird 2.2.13
Closes gh-9038
8 years ago
Andy Wilkinson 59d04d0679 Upgrade to Elasticsearch 2.4.5
Closes gh-9037
8 years ago
Andy Wilkinson c3c2a91916 Upgrade to Groovy 2.4.11
Closes gh-9036
8 years ago
Andy Wilkinson bc464adba3 Upgrade to Tomcat 8.5.14
Closes gh-9035
8 years ago
Andy Wilkinson b5811986b0 Upgrade to Ehcache 2.10.4
Closes gh-9034
8 years ago
Andy Wilkinson d0a85550d7 Upgrade to H2 1.4.195
Closes gh-9033
8 years ago
Stephane Nicoll 7c4a1a221d Merge branch '1.5.x' 8 years ago
Brian Clozel b8fe06c103 Manage all Netty dependencies
Until we can use the Netty BOM (see gh-9021), this change adds all
Netty modules as managed dependencies so as to avoid version
clashes between managed and unmanaged Netty dependencies.

Fixes gh-8553
8 years ago
Brian Clozel f2c63706da Change default file extension for Mustache templates
This commit changes the default file extension for Mustache templates,
from `.html` to `.mustache`, which is the file extension used in the
official reference documentation and by most IDE plugins.

Fixes gh-8997
8 years ago
Brian Clozel 4d5dcca553 Add Thymeleaf auto-configuration for WebFlux
Thymeleaf 3.0 implements the Spring 5.0 view infrastructure for WebMVC
and the new WebFlux framework. This commit adds auto-configuration for
the WebFlux support.

In that process, the configuration property for `spring.thymeleaf` has
been changed to add `spring.thymeleaf.servlet` and
`spring.thymeleaf.reactive` for MVC/WebFlux specific properties.

Now that the `spring-boot-starter-thymeleaf` does not only support
Spring MVC, the transitive dependency on `spring-boot-starter-web` is
removed from it.

Fixes gh-8124
8 years ago
Stephane Nicoll 1de2316a0b Refine validator and MVC validator configuration
This commit ensures that a primary JSR 303 and Spring Validator will be
exposed if the auto-configuration kicks in. As `LocalValidatorFactoryBean`
exposes 3 contracts (JSR-303 `Validator` and `ValidatorFactory` as well as
the `Spring` validator one), this makes sure that those types can be
injected by type.

`LocalValidatorFactoryBean` exposes 3 contracts and we're only checking
for the absence of a `javax.validation.Validator` to auto-configure a
`LocalValidatorFactoryBean`. If no standard JSR validator exists but a
Spring's `Validator` exists and is primary, we shouldn't flag the
auto-configured one as `@Primary`. Previous iterations on this feature
have made sure that we'll auto-configure at most one
`javax.validation.Validator` so not flagging it `@Primary` is no problem.

This commit also restores and adds tests that validates
`ValidationAutoConfiguration` will configure a JSR validator even if a
Spring Validator is present.

This effectively fixes gh-8495 in a different way.

Closes gh-8979
Closes gh-8976
8 years ago
Stephane Nicoll f42998f5ca Revert "Refine validator and MVC validator configuration"
This commit reverts c9561f0 and 69a8c0d and effectivly fixes gh-8979 but
reintroduces the issue reported in gh-8495.
8 years ago
Stephane Nicoll d4f87ae74e Polish 8 years ago
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
8 years ago
Artem Bilan 8e68511eb3 Upgrade to Spring Kafka 2.0.0.M1
Closes gh-9020
8 years ago
Phillip Webb 86ce474108 Fix malformed javadoc
See gh-9000
8 years ago
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
8 years ago
Phillip Webb 25f0b3482c Rework configuration properties support
Closes gh-9000
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
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
8 years ago
Madhura Bhave 829ab59757 Use new configuration properties in samples
Update `spring-boot-samples` to use the new configuration properties
support.

See gh-9000
8 years ago
Madhura Bhave 7efbedc0dc Use new configuration properties in devtools
Update `spring-boot-devtools` to use the new configuration properties
support.

See gh-9000
8 years ago
Madhura Bhave 866cf1dda7 Use new configuration properties in actuator
Update `spring-boot-actuator` to use the new configuration properties
support.

See gh-9000
8 years ago
Madhura Bhave 69ab2e462e Use new configuration properties in autoconfigure
Update `spring-boot-autoconfigure` to use the new configuration
properties support.

See gh-9000
8 years ago
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
8 years ago
Madhura Bhave d4ef523e64 Use new configuration properties in spring-boot
Update `spring-boot` to use the new configuration properties support.

See gh-9000
8 years ago
Phillip Webb 834aa09300 Remove ConfigurationProperySource
Remove `ConfigurationProperySource` from `PropertySourcesPropertyValues`
so that the deprecated code to continues to work.

See gh-4910
8 years ago