Commit Graph

15869 Commits (26811b89746debffe33c27e7f78a139e1a4a0106)
 

Author SHA1 Message Date
Madhura Bhave 26811b8974 Ignore top-level ConfigurationProperty binding failures
Fixes gh-12357
7 years ago
Stephane Nicoll f47d60e7d4 Merge pull request #12411 from igor-suhorukov:master
* pr/12411:
  Polish "Get rid of "magic" time constants"
  Get rid of "magic" time constants
7 years ago
Stephane Nicoll a55180aa1e Polish "Get rid of "magic" time constants"
Closes gh-12411
7 years ago
igor-suhorukov ce78a78231 Get rid of "magic" time constants
See gh-12411
7 years ago
Stephane Nicoll 7278d478bf Merge pull request #12419 from izeye:map-status
* pr/12419:
  Invoke mapStatus() only when necessary
7 years ago
Johnny Lim 3c9cee2a8c Invoke mapStatus() only when necessary
Closes gh-12419
7 years ago
Andy Wilkinson 3642636b60 Align test build-info.properties with ISO 8601 formatt changes
See gh-12420
7 years ago
Andy Wilkinson 9b637d4f0d Use millisecond precision for build time in BuildPropertiesTests
Closes gh-12420
7 years ago
Andy Wilkinson 87239ba6c9 Parse build.time as an ISO 8601 instant
Closes gh-12420
7 years ago
Stephane Nicoll 252ef3fc56 Merge pull request #12405 from igor-suhorukov
* pr/12405:
  Polish
7 years ago
igor-suhorukov 4f4cc1569c Polish
Declarations should use Java collection interfaces such as "Deque" rather
than specific implementation classes such as "LinkedList".

Closes gh-12405
7 years ago
Andy Wilkinson 8109267de8 Upgrade to Spring Batch 4.0.1.RELEASE
Closes gh-12410
7 years ago
Andy Wilkinson d11c3ea348 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 44346b0771 Upgrade to Spring Batch 3.0.9.RELEASE
Closes gh-12409
7 years ago
Andy Wilkinson 63a7a9bf42 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 4fa66da359 Revert "Start building against Dependency Management Plugin 1.0.5 snapshots"
Uses snapshots of the Dependency Management Plugin causes problems as
they are only published to our plugins-snapshot repository which may
not be configured in someone's build.

See gh-12406
7 years ago
Andy Wilkinson d08b228813 Merge branch '1.5.x' 7 years ago
Andy Wilkinson 3395d05c21 Start building against Dependency Management Plugin 1.0.5 snapshots
See gh-12406
7 years ago
Stephane Nicoll 1a589178fe Merge branch '1.5.x' 7 years ago
Stephane Nicoll f711c96d39 Upgrade maven wrapper to Maven 3.5.3
Closes gh-12402
7 years ago
Andy Wilkinson 43d05315b3 Use Surefire and Failsafe 2.21.0 when building with JDK 10
Closes gh-12332
7 years ago
Madhura Bhave 89e42d40c5 Provide security matchers for actuator links
Fixes gh-12353
7 years ago
Stephane Nicoll 7d1faa1c88 Ignore static and abstract accessors
This commit updates the annotation processor and the binder to ignore
any static or abstract method that has the characteristics of a JavaBean
accessor. As a result, no property is generated for those (invalid)
accessor and no binding occurs on them either.

Closes gh-12390
7 years ago
Brian Clozel 72afdc676d Reorder WebMvcConfigurer from auto-configuration
Prior to this commit, all `WebMvcConfigurer` instances provided by user
configuration were processed *before* the one provided by the
`WebMvcAutoConfiguration`.

For many options this has no consequence, but for some, like the
`ContentNegotiationConfigurer`, settings were overriden by the
auto-configuration even if developers provided an opinion.

This commit orders the `WebMvcConfigurer` provided by the
auto-configuration at `0`, so that custom configurers (unordered, at
`Ordered.LOWEST_PRECEDENCE`) are processed *after*.

This still gives room to developers for configuring things *before* the
auto-configuration - they can still order their own configuration
accordingly.

Fixes gh-12389
7 years ago
Stephane Nicoll 9b1003d9f6 Properly identify accessor methods
This commit fixes the binder so that it property identifies JavaBean
accessors. Previously an accessor named `get` or `is` was identified.
Similarly, a setter named `set` was identified.

Closes gh-12363
7 years ago
Stephane Nicoll 36ed7ae699 Polish 7 years ago
Stephane Nicoll 3804466ad5 Fix description of JDBC starter
Closes gh-12387
7 years ago
Andy Wilkinson bf84215b90 Merge branch '1.5.x' 7 years ago
Stephane Nicoll 1b36ab5be0 Fix wrong import 7 years ago
Stephane Nicoll 0207b816d9 Attempt to detect ddl-auto mode only if necessary
This commit defers the resolution of the default ddl auto mode only when
it is absolutely necessary. This prevents Spring Boot to attempt to get
a connection when it isn't necessary

Closes gh-12374
7 years ago
Andy Wilkinson 51301dfc91 Upgrade to Spring Social 1.1.6.RELEASE
Closes gh-12386
7 years ago
Andy Wilkinson 08fe332a3f Upgrade to Groovy 2.4.14
Closes gh-12385
7 years ago
Andy Wilkinson 8849dbe5df Upgrade to Undertow 1.4.23.Final
Closes gh-12384
7 years ago
Andy Wilkinson 5b48f16494 Upgrade to Appengine Sdk 1.9.63
Closes gh-12383
7 years ago
Andy Wilkinson 101ed76559 Upgrade to Jackson 2.8.11.20180217
Closes gh-11475
7 years ago
Andy Wilkinson 317b51f2ad Make ApplicationContextRequestMatcher and subclasses thread-safe
Previously, when performing lazy initialisation of the context,
ApplicationContextRequestMatcher assigned the context field before it
called initialized. The context being non-null is used as the signal
that it’s ok to call a subclass’s matches method. If one thread checks
for a non-null context in between the field being assigned and
initialized being called on another thread, matches will be called
before the subclass is ready.

This commit closes the window for the race condition by only assigning
the context field once the subclass’s initialized method has been
called.

There is a secondary problem in each of the subclasses. Due to the use
of double-checked locking in ApplicationContextRequestMatcher, it’s
possible for a subclass’s matches method to be called by a thread that
has not synchronised on the context lock that’s held when initialized
is called and the delegate field is assigned. This means that the
value assigned to the field may not be visible to that thread.

This commit declares the delegate field of each
ApplicationContextRequestMatcher subclass as volatile to ensure that,
following initialisation, its value is guaranteed to be visible to
all threads.

Closes gh-12380
7 years ago
Stephane Nicoll 42629cb8ae Add support for ConnectionNameStrategy
This commit detects if a `ConnectionNameStrategy` bean exists in the
context and associates it with the auto-configured RabbitMQ's
`ConnectionFactory` when that is the case.

Closes gh-12367
7 years ago
Stephane Nicoll bc47b715c3 Add a note about the use of `*` with YAML
Closes gh-12361
7 years ago
Stephane Nicoll 96f17da4cd Merge pull request #12365 from jacobis:fix-reference-guide
* pr/12365:
  Remove a redundant trailing slash in doc
7 years ago
seongwoon.lee 762793b812 Remove a redundant trailing slash in doc
Closes gh-12365
7 years ago
Stephane Nicoll 24402aaf02 Merge branch '1.5.x' 7 years ago
Stephane Nicoll f8c1821c2c Polish
See gh-12365
7 years ago
Stephane Nicoll 7a88fe692d Polish Quartz dependency management
Closes gh-12364
7 years ago
Stephane Nicoll 326c1e123c Merge branch '1.5.x' 7 years ago
Stephane Nicoll 66d1f5cd0b Fix expansion of static-locations array
This commit fixes a NPE when the static-locations array of
`ResourceProperties` has to be expanded as the setter is cleaning the
values of the array and is affected by a non-intuitive behaviour of the
binder.

When the binder needs to set an element of an array and the size of the
array isn't large enough, the binder proceeds as follows:

* An array of the required size is created
* The content of the original array is copied over
* The setter of the property is invoked with the new array
* The setter of the property is invoked and the returned array is
mutated to set the requested value

While one would expect the array to contain the requested value when the
setter is invoked, this is not the case. Also, the array might contain
null values if a value at index 8 should be set and the array has a size
of 3.

All in all, `ResourceProperties#appendSlashIfNecessary` has to account
for `null` and an additional round of cleaning has to happen once
binding has completed.

Closes gh-12360
7 years ago
Stephane Nicoll 6f7501f62b Remove my clone 7 years ago
Madhura Bhave e6eca04af2 Make EndpointRequestMatcher#excluding public
Fixes gh-12354
7 years ago
Madhura Bhave 44c48ec5a8 Merge pull request #12350 from inaba jun 7 years ago
Madhura Bhave 4ca1e6ae4e Polish "Fix typo in TestDatabaseAutoConfiguration"
Closes gh-12350
7 years ago
inabajunmr ddd8598e2e Fix typo in TestDatabaseAutoConfiguration failure msg
See gh-12350
7 years ago