- 08 Mar, 2018 11 commits
-
-
Andy Wilkinson authored
Closes gh-12410
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-12409
-
Andy Wilkinson authored
-
Andy Wilkinson authored
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
-
Andy Wilkinson authored
-
Andy Wilkinson authored
See gh-12406
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Closes gh-12402
-
Andy Wilkinson authored
Closes gh-12332
-
Madhura Bhave authored
Fixes gh-12353
-
- 07 Mar, 2018 16 commits
-
-
Stephane Nicoll authored
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
-
Brian Clozel authored
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
-
Stephane Nicoll authored
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
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Closes gh-12387
-
Andy Wilkinson authored
-
Stephane Nicoll authored
-
Stephane Nicoll authored
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
-
Andy Wilkinson authored
Closes gh-12386
-
Andy Wilkinson authored
Closes gh-12385
-
Andy Wilkinson authored
Closes gh-12384
-
Andy Wilkinson authored
Closes gh-12383
-
Andy Wilkinson authored
Closes gh-11475
-
Andy Wilkinson authored
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
-
Stephane Nicoll authored
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
-
Stephane Nicoll authored
Closes gh-12361
-
- 06 Mar, 2018 9 commits
-
-
Stephane Nicoll authored
* pr/12365: Remove a redundant trailing slash in doc
-
seongwoon.lee authored
Closes gh-12365
-
Stephane Nicoll authored
-
Stephane Nicoll authored
See gh-12365
-
Stephane Nicoll authored
Closes gh-12364
-
Stephane Nicoll authored
-
Stephane Nicoll authored
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
-
Stephane Nicoll authored
-
Madhura Bhave authored
Fixes gh-12354
-
- 05 Mar, 2018 4 commits
-
-
Madhura Bhave authored
-
Madhura Bhave authored
Closes gh-12350
-
inabajunmr authored
See gh-12350
-
Madhura Bhave authored
-