- 01 Dec, 2016 1 commit
-
-
Andy Wilkinson authored
See gh-7524
-
- 30 Nov, 2016 3 commits
-
-
Andy Wilkinson authored
Closes gh-7524
-
Stephane Nicoll authored
This commit uses standard files for libraries managed by the repackage goal of the Maven plugin. Previously, only the name of the file was used which could lead to duplicate libraries if the name of the target file deviates from the default. This typically happens when the `build.finalName` property is specified on a dependent module. Note that the `maven-war-plugin` has an additional mechanism to customize the file name structure of dependencies. This feature isn't supported by the repackage goal so an explicit mention has been added in the documentation. Closes gh-7389
-
Stephane Nicoll authored
Previously, if `spring.couchbase.bootstrap-hosts` was specified in YAML or with the `[Idx]` notation, the auto-configuration would not kick in. This is due to a limitation of `@ConditionalOnProperty` on a property of type Collection. This commit workarounds this limitation for now with a dedicated condition. Closes gh-7508
-
- 29 Nov, 2016 2 commits
-
-
Stephane Nicoll authored
* pr/7510: Remove redundant toString() invocation
-
Oscar Utbult authored
Closes gh-7510
-
- 28 Nov, 2016 3 commits
-
-
Phillip Webb authored
-
Andy Wilkinson authored
Closes gh-7496
-
Stephane Nicoll authored
Closes gh-7489
-
- 25 Nov, 2016 3 commits
-
-
Andy Wilkinson authored
* gh-7271: Test that a broken factory bean does not break resetting of mocks Prevent a broken factory bean from breaking the resetting of mocks
-
Andy Wilkinson authored
Previously, ResetMocksTestExecutionListener used getBean(name) to retrieve each instantiated singleton. When the instantiated singleton was a factory bean, this would cause getObject on the factory bean to be called. If the factory bean was unable to produce its object, for example due to test slicing excluding something, an exception would be thrown. The previous commit updated ResetMocksTestsExecutionListener to use getSingleton(name) rather than getBean(name). This will retrieve the factory bean itself rather than causing the factory bean to attempt to create an object. This commit updates the tests to verify the new behaviour. Closes gh-7270
-
Aleksander Bartnikiewicz authored
Closes gh-7271
-
- 24 Nov, 2016 8 commits
-
-
Andy Wilkinson authored
Closes gh-7476
-
Stephane Nicoll authored
* pr/7462: Polish contribution Fix undertow session persistence with spring-boot-devtools
-
Stephane Nicoll authored
Closes gh-7462
-
Peter Leibiger authored
Fixes gh-7460
-
Stephane Nicoll authored
If `OnBeanCondition` is used with a `String` literal representing the fully qualified name of a bean and such type does not exist, it gracefully manages it as if it was not found. Prior to this commit, an exception would be thrown if any related class such as the parent class does not exist. This commit handles this additional case, catching `NoClassDefFoundError` the same way it did handle `ClassNotFoundException`. That way, a missing type will now be considered as absent if it's not on the classpath. Closes gh-7459
-
Stephane Nicoll authored
Previously, two or more `@DataJpaTest` tests in the same test suite were sharing the same in-memory database instance. This commit makes sure that `TestDatabaseAutoConfiguration` creates a unique embedded database for each test it operates on. Closes gh-7473
-
Stephane Nicoll authored
Closes gh-7463
-
Stephane Nicoll authored
This commit reverts 7e2d0fd1 so that the Couchbase auto-configuration can work without Spring Data again. It also removes the `Class` reference to a Spring Data class to a `String` reference to make sure the condition operates properly when said class isn't on the classpath. Closes gh-7453
-
- 23 Nov, 2016 2 commits
-
-
Andy Wilkinson authored
Consider the following two URLs: jar:file:/test.jar!/BOOT-INF/classes!/foo.txt jar:file:/test.jar!/BOOT-INF/classes/foo.txt They both reference the same foo.txt file in the BOOT-INF/classes directory of test.jar, however the first URL does so via the nested BOOT-INF/classes archive. Previously, this difference in the URLs would lead to PathMatchingResourcePatternResolver returning two resources for foo.txt when asked to find all resources matching the pattern classpath*:/**/*.txt. This commit updates our Handler that is used for jar: URLs to consider the two URLs above to be equivalent such that url1 is equal to url2 and the two urls will produce the same hash code. Closes gh-7449
-
Stephane Nicoll authored
Closes gh-7452
-
- 22 Nov, 2016 7 commits
-
-
Phillip Webb authored
Update `WebDriverScope` so that only `WebDriver` beans with no explicit scope are moved. Fixes gh-7454
-
Phillip Webb authored
Add guard to `CouchbaseAutoConfiguration` so ensure that Spring Data Couchbase is on the classpath. Fixes gh-7453
-
Phillip Webb authored
* pr/7425: Add additional Tomcat timeout test Fix connector used to configure connection timeout
-
Phillip Webb authored
Update the Tomcat sample to also test that the connection timeout is set. See gh-7425
-
Grigory Fadeev authored
Fix Tomcat customization so that the main connection is configured with any timeout. Closes gh-7425
-
Phillip Webb authored
Update @MockBean support so that FactoryBean classes can be mocked. Fixes gh-7439
-
Phillip Webb authored
Fix `TestRestTemplate` so that any custom `ErrorHandler` isn't lost when calling `withBasicAuth`. Fixes gh-7441
-
- 21 Nov, 2016 3 commits
-
-
Andy Wilkinson authored
Closes gh-7431
-
Andy Wilkinson authored
Previously, both HypermediaAutoConfiguration and HttpMessageConverters assumed that if Spring HATEOAS was on the class path, then Jackson would be too. When this was not the case, an application would fail to start. This commit updates both classes to back off appropriately when Spring HATEOAS is on the classpath but Jackson is not. Closes gh-7434
-
Andy Wilkinson authored
Closes gh-7435
-
- 20 Nov, 2016 1 commit
-
-
Stephane Nicoll authored
Closes gh-7364
-
- 18 Nov, 2016 2 commits
-
-
Phillip Webb authored
-
Stephane Nicoll authored
This commit adds an extra property to the `server.tomcat.accesslog` to control the `reqestAttributesEnabled` flag. This flag sets request attributes for IP address, Hostname, protocol and port used for the request. Closes gh-7367
-
- 17 Nov, 2016 3 commits
-
-
Andy Wilkinson authored
Previously, we just waited for the file to exist before trying to read the port from it. This left a window where the file existed but its contents had not be written which could result in a NumberFormatException. This commit now waits for the file to have a length that is greater than zero. See gh-7379
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Previously, remote DevTools only correctly supported modifying existing classes. New classes that were added would be missed, and deleted classes could cause a failure as they would be found by component scanning but hidden by RestartClassLoader. This commit introduces a DevTools-specific ResourcePatternResolver that is installed as the application context's resource loader. This custom resolver is aware of the files that have been added and deleted and modifies the result returned from getResource and getResources accordingly. New intergration tests have been introduced to verify DevTools' behaviour. The tests cover four scenarios: - Adding a new controller - Removing an existing controller - Adding a request mapping to a controller - Removing a request mapping from a controller These four scenarios are tested with: - DevTools updating a local application - DevTools updating a remote application packaged in a jar file - DevTools updating a remote application that's been exploded Closes gh-7379
-
- 16 Nov, 2016 1 commit
-
-
Andy Wilkinson authored
-
- 15 Nov, 2016 1 commit
-
-
Phillip Webb authored
-