Commit Graph

12080 Commits (6b832178300045cf8ba2010e9e0527b7bc945b45)
 

Author SHA1 Message Date
Stephane Nicoll 6b83217830 Fix checkstyle violation 8 years ago
Phillip Webb 1d06849607 Support rebind on ConfigurationProperties
Update `ConfigurationPropertiesBindingPostProcessor` to once again allow
beans to be bound again following changes to the underlying property
sources.

Fixes gh-9160
8 years ago
Phillip Webb 21a2ba176b Refine JSON origin source logic
Update `SpringApplicationJsonEnvironmentPostProcessor` so that the
returned `PropertyOrigin` uses the source property name and not the
JSON key.

See gh-8932
8 years ago
Phillip Webb 889d43ddc4 Refine SpringApplication source types
Update `SpringApplication` so that the `run` methods and constructors
now require `Class<?>` arguments, rather than `Objects`. String based
sources can still be loaded, but must now be set on the `getSources()`
collections. `Package` and `Resource` types are no longer directly
supported.

This change should help IDEs offer better content assist, and will
help integrations with alternative languages such as Ceylon.

Users currently passing in Class references or using the
`spring.main.sources` property should not be affected by this change. If
an XML resource is being used, some refactoring may be required (see the
changes to `SampleSpringXmlApplication` in this commit).

Fixes gh-9170
8 years ago
Phillip Webb 302f038e84 Polish 8 years ago
Madhura Bhave 226db4697f Make SpringApplicationJsonEnvironmentPostProcessor origin aware
Closes gh-8932
8 years ago
Phillip Webb f4444a36b3 Merge branch '1.5.x' 8 years ago
Phillip Webb 440d03bf9e Merge branch '1.4.x' into 1.5.x 8 years ago
Phillip Webb 74f411faed Formatting 8 years ago
Brian Clozel 2ab1191f8d Do not expose servlet locations in WebFlux
The `spring.resources.static-locations` key (see `ResourceProperties`)
lists many locations by default, including `"classpath:/static"` and
`"/"`. The latter is about exposing resources located in the root
servlet location.

Reactive web applications don't depend on a Servlet-related
`ApplicationContext`/`ResourceLoader`, so `"/"` is then resolved as
`"classpath:/"`, which exposes the whole classpath.

To avoid such situations, the `GenericReactiveWebApplicationContext`
overrides the `getResourceByPath(String path)` method and always returns
non existent resources if the path starts with `"/"`.

Fixes gh-8485
8 years ago
Andy Wilkinson 00021dcd75 Upgrade to Spring Batch 4.0.0.M2
Closes gh-7645
8 years ago
Andy Wilkinson ee499b029a Merge branch '1.5.x' 8 years ago
Andy Wilkinson 5e35cdccce Merge pull request #9110 from Gytis Trikleris
* gh-9110:
  Log a warning if a health indicator throws an exception
8 years ago
Gytis Trikleris 00823d41a9 Log a warning if a health indicator throws an exception
Closes gh-9110
8 years ago
Andy Wilkinson 7f18b3d879 Merge branch '1.5.x' 8 years ago
Andy Wilkinson 232e05c0c4 Merge pull request #9239 from Artem Bilan
* gh-9239:
  Upgrade to Spring Integration Java DSL 1.2.2
8 years ago
Artem Bilan d82a23a201 Upgrade to Spring Integration Java DSL 1.2.2
Closes gh-9239
8 years ago
Phillip Webb 9a4a20537c Polish 8 years ago
Andy Wilkinson 2c315d3d6f Merge branch '1.5.x' 8 years ago
Andy Wilkinson fd2ab2fee0 Merge branch '1.4.x' into 1.5.x 8 years ago
Andy Wilkinson 198093c6a8 Fix violation reported by Checkstyle 8 years ago
Andy Wilkinson c9c014cde7 Drop IgnoreNestedPropertiesBindHandler and its tests
This should have been done as part of abdc239.

Closes gh-8657
8 years ago
Andy Wilkinson 8afaba0b9f Merge branch '1.5.x' 8 years ago
Andy Wilkinson 5693acf558 Merge branch '1.4.x' into 1.5.x 8 years ago
Andy Wilkinson a6f8351dd6 Close Liquibase-specific DataSource once database has been migrated
Previously, when the liquibase.url, .username, and .password
properties were used to configure a DataSource specifically for
Liquibase that DataSource would never be explicitly closed. As it is
created by DataSourceBuilder with no explicitly configured type it
will use whichever connection pool is available and, therefore, will
create and keep open the pool's minimum number of connections. This
is an unnecessary use of resources both in the application and in the
database.

This commit updates LiquibaseAutoConfiguration so that if it uses
DataSourceBuilder to create a DataSource then it will also close that
DataSource once the database has been migrated.

Closes gh-9218
8 years ago
Andy Wilkinson 2c96bce5cd Address some warnings that are output during javadoc generation 8 years ago
Andy Wilkinson 634e70fb25 Update docs on using Spock following release of Spock 1.1 8 years ago
Stephane Nicoll 2e94fd4434 Remove support for Spring Loaded
Closes gh-7978
8 years ago
Stephane Nicoll 1a84d41f80 Merge branch '1.5.x' 8 years ago
Stephane Nicoll cdf5f6e0ee Add support for deprecation level in manual metadata
This commit allows to specify a deprecation level to a manual metadata
entry. The purpose of that new attribute is to distinguish cases where
the property is still bound (default) from cases where the property no
longer exists and won't be bound.

This gives the opportunity to IDEs to still show the property as an
error and offer documentation and an action to rename it if a
replacement exists.

Closes gh-9074
8 years ago
Stephane Nicoll 800ec29f70 Fix datasource example 8 years ago
Stephane Nicoll 0e7b037750 Fix build failure 8 years ago
Stephane Nicoll d20b00a0c4 Merge pull request #9151 from garyrussell:kafkaKerberos
* pr/9151:
  Polish "Add Kafka Kerberos Configuration Properties"
  Add Kafka Kerberos Configuration Properties
8 years ago
Stephane Nicoll 1480f0717f Polish "Add Kafka Kerberos Configuration Properties"
Closes gh-9151
8 years ago
Gary Russell c4cfc4dd0c Add Kafka Kerberos Configuration Properties
See gh-9151
8 years ago
Stephane Nicoll f79b4e0df4 Upgrade to Spring Kafka
Closes gh-9225
8 years ago
Stephane Nicoll b2e3c5dd61 Fix order of connection pools in DataSourceBuilder
Closes gh-6013
8 years ago
Andy Wilkinson bbc37d1e71 Upgrade to Spring REST Docs 1.2.1.RELEASE
Closes gh-9071
8 years ago
Madhura Bhave dc7b3f6d6e Update samples to use new generator mappings
Closes gh-7612
8 years ago
Madhura Bhave f15cf4b991 Remove redundant uses of @NestedConfigurationProperty
Closes gh-9216
8 years ago
Andy Wilkinson fa126c5c82 Merge pull request #9217 from Gary Russell
* gh-9217:
  Upgrade to Spring Integration 5.0.0.M4
8 years ago
Gary Russell f5d9f6f035 Upgrade to Spring Integration 5.0.0.M4
Closes gh-9217
8 years ago
Andy Wilkinson a3f3740725 Remove Tomcat 8.0-based SSL sample
We now require Tomcat 8.5
8 years ago
Andy Wilkinson 61d89ef207 Remove misleading use of legacy from simple container's description
Closes gh-9173
8 years ago
Madhura Bhave 53493fdd86 Make detection of nested config more lenient
Closes gh-3454
8 years ago
Andy Wilkinson 2a4ba89f8e Remove logic accommodating Tomcat 8.0.x from TomcatServletWebServerFactory
We now require Tomcat 8.5.
8 years ago
Andy Wilkinson 445344211d Remove use of deprecated API in TomcatServletWebServerFactory 8 years ago
Stephane Nicoll e007f20725 Merge branch '1.5.x' 8 years ago
Stephane Nicoll a22b3d9515 Merge branch '1.4.x' into 1.5.x 8 years ago
Stephane Nicoll 4056542bd4 Merge pull request #9212 from sslavic:patch-1
* pr/9212:
  Fix typo in javadoc
8 years ago