Juergen Hoeller
55e8aea2a3
Polishing
2018-08-01 12:35:01 +02:00
Juergen Hoeller
77e75fdf87
Avoid synthesizable annotation creation for @Bean/@Scope on scanning
...
Includes consistent (non-)use of AnnotationUtils/AnnotatedElementUtils.
Issue: SPR-16933
2018-08-01 12:18:10 +02:00
Juergen Hoeller
8c1290084d
Polishing
2018-07-31 23:40:36 +02:00
Rossen Stoyanchev
4133355b72
Typo in URI Encoding section
...
Issue: SPR-17104
2018-07-31 23:28:08 +03:00
Rossen Stoyanchev
7476c5d5db
Revert ""Order of messages" in STOMP section of reference docs"
...
This reverts commit dc066b0530 which
wasn't meant to be added to 5.0.x where the feature does not exist.
2018-07-31 23:15:49 +03:00
Juergen Hoeller
fd75600c26
Polishing
2018-07-31 21:37:40 +02:00
Juergen Hoeller
a4be54d760
Avoid synthesizable check for common annotation types
...
This revision immediately returns false from isSynthesizable for java.lang.annotation types.
Issue: SPR-16933
2018-07-31 21:37:34 +02:00
Juergen Hoeller
f791b827ec
Correct 404 status code and refined resolution failure log message
2018-07-30 23:33:53 +02:00
Juergen Hoeller
a65c7ef780
Polishing
2018-07-30 23:13:22 +02:00
Juergen Hoeller
2a32c6cf57
Nullability refinements in spring-webmvc
...
Includes revision of web.servlet.tags.form for non-null conventions.
Issue: SPR-15540
(cherry picked from commit f74a631ea1 )
2018-07-30 22:33:11 +02:00
Juergen Hoeller
91fa2ed0d4
Initialize pre-filled HashMaps with large enough capacity
...
Empty Maps are preferably initialized without capacity (not initializing them at all or lazily initializing with default capacity when needed).
Issue: SPR-17105
(cherry picked from commit 4a147d26fc )
2018-07-30 22:33:04 +02:00
Juergen Hoeller
006db06d11
Polishing
2018-07-27 18:48:09 +02:00
Juergen Hoeller
6839570187
Polishing
...
(cherry picked from commit 1fd6248d84 )
2018-07-27 18:20:29 +02:00
Rossen Stoyanchev
5f96d7c46c
Add notes on future deprecation of the RestTemplate
...
Issue: SPR-16993
2018-07-27 08:43:26 -04:00
Juergen Hoeller
cca8968a44
Polishing
2018-07-26 23:40:32 +02:00
Juergen Hoeller
b6a049a088
Polishing
...
(cherry picked from commit 7c9ba80f85 )
2018-07-26 23:27:28 +02:00
Rossen Stoyanchev
2d83051ce1
bindToApplicatonContext uses WebSessionManager bean
...
Issue: SPR-17094
2018-07-26 16:05:33 -04:00
Rossen Stoyanchev
f9ff6d4192
Polish
2018-07-26 15:54:21 -04:00
Juergen Hoeller
514c28b7c0
Revise BeanFactory vs ApplicationContext section in reference docs
...
Issue: SPR-17095
(cherry picked from commit 8277ea5794 )
2018-07-26 18:50:21 +02:00
Juergen Hoeller
5da58393c1
Polishing
2018-07-26 15:55:15 +02:00
Juergen Hoeller
79936d98de
Properly identify event-related ClassCastExceptions on JDK 11
...
Issue: SPR-17093
(cherry picked from commit e458777925 )
2018-07-26 15:07:10 +02:00
Spring Buildmaster
7dff7bb7a4
Next Development Version
2018-07-26 07:49:44 +00:00
Juergen Hoeller
d7cf2c869c
MethodBeforeAdviceInterceptor implements BeforeAdvice marker interface
...
Includes related polishing in the advice interceptor implementations.
Issue: SPR-17088
(cherry picked from commit 4e03d3fdcb )
2018-07-25 20:16:48 +02:00
Juergen Hoeller
c89fb745f7
ListBasedXMLEventReader uses defensive modifiable copy of given List
...
(cherry picked from commit 9ab63b8494 )
2018-07-25 19:06:55 +02:00
Juergen Hoeller
e214ee5c85
Backport of WebMvcConfigurationSupport javadoc revision
2018-07-25 15:39:39 +02:00
Juergen Hoeller
93ef169c5c
Polishing
2018-07-25 14:40:31 +02:00
Brian Clozel
407bd96cf3
ResponseEntityResultHandler overwrites headers
...
Prior to this commit, controller handlers (regular and exception
handlers as well) would not overwrite existing HTTP response headers on
the exchange. This would lead to situations where Content-Type values
set during the initial handling phase would not be overwritten when
handling an error later on.
This commit aligns the implementation of that result handler on the
Spring MVC one in that regard.
Issue: SPR-17082
(Cherry-picked from 195f3f07e7 )
2018-07-24 22:23:52 +02:00
Juergen Hoeller
0b5c099de2
Polishing
2018-07-24 22:10:07 +02:00
Juergen Hoeller
4f9a18f5aa
Order setter for DefaultSimpUserRegistry
...
Issue: SPR-17023
2018-07-24 18:56:52 +02:00
Rossen Stoyanchev
9b3d80c5e4
Update STOMP section on working with subscriptions
...
1. Revise @SubscribeMapping to address common points of confusion.
2. Add ExecutorSubsribableChannel.
3. Split Events and Interception in two.
Issue: SPR-16950
2018-07-24 12:25:41 -04:00
Rossen Stoyanchev
dc066b0530
"Order of messages" in STOMP section of reference docs
...
Issue: SPR-13989
2018-07-24 12:23:39 -04:00
Juergen Hoeller
0c44b5224f
Polishing
...
(cherry picked from commit dd4468a )
2018-07-24 16:34:56 +02:00
Juergen Hoeller
207e8c2409
BeanFactoryAdvisorRetrievalHelper avoids synchronization for name cache
...
Issue: SPR-16570
(cherry picked from commit 7f1a8d7 )
2018-07-24 16:34:50 +02:00
Juergen Hoeller
2329588856
Upgrade to Mockito 2.19.1
2018-07-24 15:00:47 +02:00
Juergen Hoeller
f677d684e7
Polishing
2018-07-24 15:00:35 +02:00
Juergen Hoeller
3878db2e8c
Provide predetermined capacity for cache operation collections
...
Issue: SPR-17079
(cherry picked from commit 20c34cb )
2018-07-24 14:59:05 +02:00
Rossen Stoyanchev
24a113fb27
Ensure headers work with ResponseEntity + reactive body
...
Issue: SPR-17076
2018-07-24 00:26:01 -04:00
Juergen Hoeller
e21db2619b
AspectJExpressionPointcut leniently ignores non-composable interfaces
...
Issue: SPR-17003
(cherry picked from commit bccff73 )
2018-07-22 22:35:32 +02:00
Juergen Hoeller
f5dd4d2c02
Polishing
2018-07-22 19:33:40 +02:00
Juergen Hoeller
192113de60
Correctly determine and propagate validation hints to DataBinder
...
Issue: SPR-17073
(cherry picked from commit 3c65c17 )
2018-07-21 12:34:55 +02:00
Brian Clozel
f89511e7fe
Switch order of multipart Content-Type directives
...
Since SPR-15205, the `FormHttpMessageConverter` is adding a `charset`
directive to the `Content-Type` request header in order to help servers
understand which charset is being used to encode headers of each part.
As reported in SPR-17030 and others, some servers are not parsing
properly such header values and assume that `boundary` is the last
directive in the `Content-Type` header.
This commit reorders the charset information right before the boundary
declaration to get around those issues.
Issue: SPR-17030
(Cherry-picked from 390bb871d8 )
2018-07-20 18:16:53 +02:00
Juergen Hoeller
c3f6403f61
Polishing
2018-07-20 16:45:17 +02:00
Rossen Stoyanchev
5007d01c17
Fix for encoding issue with MvcUriComponentsBuilder
...
Provide method for stronger encoding of expanded URI variables when
building links from views.
Issue: SPR-17027
2018-07-19 19:07:22 -04:00
Rossen Stoyanchev
f1c55a3b4a
UriComponentsBuilder method to configure URI variables
...
See Javadoc on UriComponentsBuilder#uriVariables for details.
This helps to prepare for SPR-17027 where the MvcUriComponentsBuilder
already does a partial expand but was forced to build UriComonents
and then create a new UriComponentsBuilder from it to continue. This
change makes it possible to stay with the same builder instance.
Issue: SPR-17027
2018-07-19 19:07:22 -04:00
Rossen Stoyanchev
34a0cdfc33
Minor fixes: UriComponentsBuilder, UriComponents, docs
...
After the latest changes, two small fixes in the clone method to copy
the encode flag, and in the encodeUriTemplate method to account for
possible null query params.
Improvements in the URI encoding section.
Issue: SPR-17039, SPR-17027
2018-07-19 19:07:22 -04:00
Juergen Hoeller
1cd0135195
Restore original DefaultAdvisorChainFactory MethodMatcher invocation
...
Includes test for @Async pointcut against AOP proxy without target.
2018-07-20 00:33:27 +02:00
Juergen Hoeller
0c5c3103c6
ReflectiveMethodExecutor skips interface search (plus related polishing)
2018-07-19 16:51:13 +02:00
Juergen Hoeller
c66f9d8880
Javadoc update: ConfigurationClassPostProcessor is priority-ordered
...
Issue: SPR-17062
(cherry picked from commit 0b60447 )
2018-07-19 13:24:48 +02:00
Juergen Hoeller
4d3a899a53
OrderUtils caches order values (for AnnotationAwareOrderComparator)
...
Issue: SPR-17064
(cherry picked from commit d0bbbf4 )
2018-07-19 13:24:43 +02:00
Juergen Hoeller
11fc086309
Prefer ArrayList/ArrayDeque over LinkedList for multi-element holders
...
LinkedList remains in place where a List is likely to remain empty or single-element (in order to avoid unused capacity).
Issue: SPR-17037
(cherry picked from commit 9c08a48 )
2018-07-19 00:08:13 +02:00