Brian Clozel
ef8652615c
Log exception at ERROR level in CompositeLog
...
Fixes gh-22364
2019-02-06 19:58:41 +01:00
Sebastien Deleuze
72ed274c6f
Merge branch '5.1.x'
2019-02-06 19:35:20 +01:00
Sebastien Deleuze
d1e5a3af9f
Fix truncated Value#value javadoc
...
Closes gh-22331
2019-02-06 19:28:31 +01:00
Sam Brannen
9bc2c99ce5
Suppress deprecation warning in Gradle build
...
See gh-22181
2019-02-06 16:37:23 +01:00
Sebastien Deleuze
3787b23a98
Deprecate PropertyPlaceholderConfigurer
...
This commit deprecates PropertyPlaceholderConfigurer in favor of
PropertySourcesPlaceholderConfigurer.
Closes gh-22181
2019-02-06 16:00:24 +01:00
Sebastien Deleuze
0ad9349d84
Limit ref() and provider() visibility in Kotlin DSL
...
This commit makes ref() and provider() only available from
inside the bean lambda and not from the root level of the beans DSL.
Closes gh-22177
2019-02-05 16:59:56 +01:00
Juergen Hoeller
34ddb1e3cd
Merge branch '5.1.x'
2019-02-05 16:32:58 +01:00
Juergen Hoeller
9895e44d73
Polishing
2019-02-05 16:03:24 +01:00
Juergen Hoeller
643a68f81b
Detect existing jar URLs from URLClassLoader.getURLs()
...
Closes gh-22346
2019-02-05 16:02:50 +01:00
Juergen Hoeller
ac4525ddf8
Detect MariaDB as MySQL (for mariadb-java-client 2.4+ compatibility)
...
Closes gh-22344
2019-02-05 16:02:17 +01:00
Yoann Rodière
17caac8f1f
Add tests for SpringBeanContainer (Hibernate ORM integration) and fix the behavior when requesting named beans ( #22260 )
...
* Add integration tests for SpringBeanContainer (Hibernate ORM integration)
* Autowire bean properties of beans retrieved by name in SpringBeanContainer
* Add integration tests for fallback cases in SpringBeanContainer (Hibernate ORM integration)
* Fix SpringBeanContainer incorrectly losing the bean name when calling the fallback producer
(cherry picked from commit 00855c4f5f )
2019-02-05 16:01:40 +01:00
Sebastien Deleuze
0b9522c84e
Migrate Kotlin Mockito tests to Mockk
...
Closes gh-22345
2019-02-05 15:47:08 +01:00
Yoann Rodière
00855c4f5f
Add tests for SpringBeanContainer (Hibernate ORM integration) and fix the behavior when requesting named beans ( #22260 )
...
* Add integration tests for SpringBeanContainer (Hibernate ORM integration)
* Autowire bean properties of beans retrieved by name in SpringBeanContainer
* Add integration tests for fallback cases in SpringBeanContainer (Hibernate ORM integration)
* Fix SpringBeanContainer incorrectly losing the bean name when calling the fallback producer
2019-02-05 15:39:46 +01:00
Juergen Hoeller
4c9ae6494f
Concurrency/nullability fine-tuning in MimeType(Utils)
...
See gh-22340
2019-02-05 15:38:41 +01:00
Brian Clozel
1bf3b36ce8
Polish
...
See gh-22340
2019-02-05 15:06:33 +01:00
Brian Clozel
ba8849dda3
Avoid MimeType garbage creation
...
Prior to this commit, calls to `MimeType` and `MediaType` would create a
significant amount of garbage:
* during startup time, in the static sections of `MimeType` and
`MediaType` when creating well-known types
* at runtime, when parsing media types for content negotiation or
writing known media types as strings in HTTP response headers
This commit does the following:
* Avoid parsing the well-known types and use regular constructors
instead
* Cache types in a simple LRU cache once they've been parsed, since an
application is likely to deal with a limited set of types
* Avoid using `java.util.stream.Stream` in hot code paths
Benchmarks show that a complete revision of the `MimeTypeUtils` parser
is not required, since the LRU cache is enough there.
Closes gh-22340
2019-02-05 14:33:43 +01:00
Brian Clozel
862fa557bd
Avoid java.util.stream.Stream usage in hot paths
...
Prior to this commit, profiling sessions would show that using
`java.util.stream.Stream` in some hot code paths creates significant
garbage.
Where streams aren't really required, this commit turns those snippets
into imperative logic because those are likely to be called once or
multiple times per request.
Closes gh-22341
2019-02-05 12:14:51 +01:00
Juergen Hoeller
4ec2f3cd17
Merge branch '5.1.x'
2019-02-05 00:55:20 +01:00
Juergen Hoeller
165d2511b9
Upgrade to Apache HttpClient 4.5.7 and Commons FileUpload 1.4
...
Includes RxJava 2.2.6, Netty 4.1.33, Undertow 2.0.17.
2019-02-05 00:46:07 +01:00
Juergen Hoeller
d27bae245a
Polishing
2019-02-05 00:45:28 +01:00
Juergen Hoeller
0ebc020b21
Load-time weaving support for WildFly 13+ (JBoss Modules 1.8+)
...
Fixes gh-22297
2019-02-05 00:44:52 +01:00
Juergen Hoeller
59a9c8e004
MethodReference.MethodValueRef.setValue throws SpelEvaluationException
...
Closes gh-22336
2019-02-05 00:43:56 +01:00
Juergen Hoeller
ca7634dfe8
Avoid duplicate class introspection during findAnnotationOnBean
...
Closes gh-22318
2019-02-05 00:42:24 +01:00
Juergen Hoeller
5eca512c46
Ref doc mentions SimpleTransactionScope next to SimpleThreadScope
...
Closes gh-22180
2019-02-05 00:41:53 +01:00
Juergen Hoeller
c700ccbc00
Upgrade to Apache HttpClient 4.5.7
...
Includes Hibernate ORM 5.4.1 for integration tests.
2019-02-05 00:10:40 +01:00
Juergen Hoeller
a27a6470f7
Polishing
2019-02-05 00:10:22 +01:00
kudrevatykh
85474297be
Load-time weaving support for WildFly 13+ ( #22297 )
...
Load-time weaving support for WildFly 13+ (JBoss Modules 1.8+)
2019-02-04 23:31:21 +01:00
stsypanov
248d3f8e8b
Use AtomicInteger instead of unsafe increment on volatile fields
2019-02-04 23:22:20 +01:00
Stephane Nicoll
e402a93e41
Merge branch '5.1.x'
2019-02-04 10:34:40 +01:00
Stephane Nicoll
99da6e9723
Merge pull request #22337 from mhewedy
...
* pr/22337:
Polish "Fix use CompletableFuture in DeferredResultReturnValueHandlerTest"
Fix use CompletableFuture in DeferredResultReturnValueHandlerTest
2019-02-04 10:33:58 +01:00
Stephane Nicoll
1241c3b2d1
Merge pull request #22339 from vpavic
...
* pr/22339:
Polish "Improve spring-context-indexer documentation"
Improve spring-context-indexer documentation
2019-02-04 10:33:54 +01:00
Stephane Nicoll
7c62d7cfe2
Polish "Fix use CompletableFuture in DeferredResultReturnValueHandlerTest"
...
Closes gh-22337
2019-02-04 10:31:31 +01:00
Muhammad Hewedy
6507b09c7f
Fix use CompletableFuture in DeferredResultReturnValueHandlerTest
...
See gh-22337
2019-02-04 10:24:52 +01:00
Stephane Nicoll
229f354df1
Polish "Improve spring-context-indexer documentation"
...
Closes gh-22339
2019-02-04 10:22:43 +01:00
Vedran Pavic
43ea25e413
Improve spring-context-indexer documentation
...
See gh-22339
2019-02-04 10:17:34 +01:00
Sam Brannen
0742986e0e
Suppress warnings from tests in Gradle build
2019-02-01 11:13:53 +01:00
Sam Brannen
5e7065d829
Upgrade to JUnit Jupiter 5.4 RC2
...
Issue: #22308
2019-02-01 10:59:20 +01:00
stsypanov
af13580fd5
Remove unnecessary array initialization
2019-01-31 09:00:22 -05:00
Juergen Hoeller
7a77e83e10
SpelNodeImpl manages start/end position in separate integer values
...
Fixes gh-22157
2019-01-28 22:50:56 +01:00
Juergen Hoeller
5aed117b68
Model interface exposes getAttribute method (next to add/contains)
...
Fixes gh-22145
2019-01-28 22:50:29 +01:00
Juergen Hoeller
80385ced4c
Remove java.sql dependency from ReflectionUtils/TransactionDefinition
...
Fixes gh-21996
2019-01-28 22:50:11 +01:00
Arjen Poutsma
d3b5ba7a36
Add test case for HttpRequest with relative URIs
...
Test case for #19890
2019-01-28 16:43:46 +01:00
Rossen Stoyanchev
b8f7c37cc4
Merge branch '5.1.x'
2019-01-25 17:01:51 -05:00
Rossen Stoyanchev
4560dc2818
Improve empty body check
...
Fixes gh-22265
2019-01-25 15:48:04 -05:00
Sam Brannen
439bc65b0e
Upgrade to JUnit Jupiter 5.4 RC1
...
Issue: #22308
2019-01-25 15:56:16 +01:00
Juergen Hoeller
05f1ea8515
Merge branch '5.1.x'
2019-01-25 15:46:01 +01:00
Juergen Hoeller
d0033f12d0
ApplicationListenerMethodAdapter uses target method for order lookup
...
Fixes #22307
2019-01-25 15:44:43 +01:00
Juergen Hoeller
85ec9b9df2
Avoid Class.getPackage() in favor of plain Class.getName() checks
...
Fixes #22306
2019-01-25 15:35:49 +01:00
Marten Deinum
6bdf2c2685
Upgrade to Commons-Fileupload 1.4
2019-01-24 17:53:22 +01:00
Arjen Poutsma
6004be9d31
Merge branch '5.1.x'
2019-01-24 15:55:46 +01:00