Sam Brannen
e500456f1c
Publish distribution zip files again
...
A change in `docs.gradle` in 5.2.4 resulted in distribution zip files
no longer being published to
https://repo.spring.io/release/org/springframework/spring/ .
This commit fixes this by updating the `mavenContent` configuration as
suggested by @wilkinsona.
Closes gh-24605
2020-03-16 15:43:57 +01:00
Sam Brannen
35d0b3dba9
Fix Javadoc links accidentally broken in 7b6d83a106
2020-03-16 15:43:04 +01:00
Qimiao Chen
5f2e298c08
Extract isDebugEnabled() checks to local variables
...
Closes gh-24683
2020-03-16 15:25:05 +01:00
Qimiao Chen
193a76fe2a
Avoid unnecessary sorting in AbstractHandlerMethodMapping
...
Closes gh-24704
2020-03-16 12:38:43 +01:00
Qimiao Chen
70581d1ea2
Improve javadoc in RollbackRuleAttribute regarding nested classes
...
Closes gh-24682
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
2020-03-15 12:06:16 +01:00
Qimiao Chen
d85a6c0bea
Fix typos in MergedAnnotationsCollectionTests
...
Closes gh-24701
2020-03-15 11:48:29 +01:00
Stephane Nicoll
7411b2e025
Merge pull request #24697 from chenqimiao
...
* pr/24697:
Fix typo in buildSrc/README.md
Closes gh-24697
2020-03-14 10:06:46 +01:00
陈其苗
fac1b94623
Fix typo in buildSrc/README.md
...
See gh-24697
2020-03-14 10:06:25 +01:00
Juergen Hoeller
d91fc8c672
No log level check unless String concatenation is following
2020-03-14 00:01:13 +01:00
Juergen Hoeller
6599383dac
Upgrade to RxJava 2.2.19, Undertow 2.0.30, HtmlUnit 2.38
2020-03-13 23:15:07 +01:00
Juergen Hoeller
33642345a4
Lazily check log level within validation conditions
...
See gh-24672
2020-03-13 23:14:38 +01:00
Arjen Poutsma
7c4f0318bb
Improve efficiency of built RouterFunction
...
This commit changes the way RouterFunctions registered to the builder
are composed in both WebFlux.fn and WebMvc.fn.
Prior to this commit, all routes added to the build were composed with
`reduce`.
After this commit, all routes are stored in a special router function,
allowing for more efficient execution and smaller stack traces.
Closes gh-24652
2020-03-13 16:09:41 +01:00
Arjen Poutsma
54e2df2e0e
Improve RouterFunction composition
...
This commit changes the way two RouterFunctions are composed in
WebFlux.fn. Prior to this commit, two were composed with
`switchIfEmpty()`, switching from the first to the second route if the
first did not provide an element.
After this commit, two router functions are compose using `concat`,
which results in a smaller stack trace.
See gh-24652
2020-03-13 16:09:41 +01:00
Rossen Stoyanchev
f4ce22f6ba
Merge branch '23828-sockjs'
2020-03-13 14:58:48 +00:00
Rossen Stoyanchev
fa6ccc066d
Do not raise exception for undelivered empty messages
...
Closes gh-23828
2020-03-13 14:58:31 +00:00
Rossen Stoyanchev
1a8caf9e2b
Polishing and minor refactoring
...
See gh-23828
2020-03-13 14:58:31 +00:00
Rossen Stoyanchev
7b7dfcaaed
Polishing contribution
...
See gh-24691
2020-03-13 14:58:01 +00:00
mdindoffer
c11dd4a839
Do not mention credentials as enabled by default in CorsRegistry
...
Credentials are not enabled by default contrary to the javadocs.
The credentials support must be enabled via #allowCredentials.
Closes gh-24691
Co-authored-by: Martin Dindoffer <martin.dindoffer@sigp.eu>
2020-03-13 15:21:53 +01:00
陈其苗
c5b8406def
Add some test cases in StringUtilsTests
2020-03-13 12:35:04 +00:00
陈其苗
6013591fac
Polish containsAny of CollectionUtils by reusing findFirstMatch
2020-03-13 12:32:43 +00:00
Qimiao Chen
c8c1e61c0a
Improve Javadoc in AutoProxyRegistrar
...
Closes gh-24688
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
2020-03-13 10:01:58 +01:00
Qimiao Chen
201827cb0b
Fix exception message in getMergedBeanDefinition
...
Closes gh-24686
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
2020-03-13 09:47:57 +01:00
Rossen Stoyanchev
a599859595
ServerCookie ignores empty domain with double quotes
...
Closes gh-24663
2020-03-12 12:21:19 +00:00
Rossen Stoyanchev
4aedf2ea13
MetadataEncoder expands vars correctly
...
Closes gh-24656
2020-03-12 11:35:08 +00:00
Arjen Poutsma
0dc1c7eb8b
Add ServerRequest::checkNotModified
...
This commit adds the checkNotModified method to ServerRequest in both
WebFlux.fn and WebMvc.fn. Unlike other checkNotModified methods found
in the framework, this method does not return a boolean, but rather
a response wrapped in a Mono/Optional. If the resource has
not been changed, the not-modified response can be returned directly;
if the resource has changed, the user can create a corresponding
response using switchIfEmpty/orElse(Get).
Closes gh-24173
2020-03-11 16:45:00 +01:00
Juergen Hoeller
73e39726cd
Upgrade to Kotlin 1.3.70
...
Includes latest dependency updates (Netty 4.1.47, Jetty 9.4.27, Jackson 2.10.3, Log4J 2.13.1, SnakeYAML 1.26, Vavr 0.10.2, Commons Pool 2.8, POI 4.1.2, OkHttp 3.14.7, Jetty Reactive HttpClient 1.1.2, JRuby 9.2.11, AssertJ 3.15)
2020-03-11 14:56:41 +01:00
Juergen Hoeller
bcee6b9da4
Consistent assertions for supplier-based bean definition tests
2020-03-11 14:55:39 +01:00
Juergen Hoeller
7f26e8cfc6
Short-circuit interface visibility check in case of same ClassLoader
...
Closes gh-24664
2020-03-11 14:55:08 +01:00
Juergen Hoeller
bee63e38c1
Create ScannedGenericBeanDefinitions for index-derived components as well
...
Closes gh-24638
2020-03-11 14:54:16 +01:00
Juergen Hoeller
193f419520
Deprecate PTM-based constructors in favor of generic TransactionManager
...
Closes gh-24612
2020-03-11 14:52:03 +01:00
Juergen Hoeller
6df80a8f70
Restore original JsonMappingException handling (assuming invalid input)
...
Closes gh-24610
Closes gh-24630
Closes gh-24646
2020-03-11 14:51:36 +01:00
Qimiao Chen
988aae4f2e
Remove unnecessary variable declaration in ProxyCallbackFilter
...
Closes gh-24675
2020-03-11 13:51:13 +01:00
Arjen Poutsma
61569003b5
CORS support in HTTP header predicate
...
This commit introduces CORS support for the HeadersPredicate in
WebMvc.fn and WebFlux.fn.
Closes gh-24564
2020-03-10 17:22:26 +01:00
Сергей Цыпанов
1fd447f395
Reduce String garbage in CglibAopProxy.doValidateClass()
...
Closes gh-24672
2020-03-10 17:16:08 +01:00
Arjen Poutsma
3cbea86335
Deprecate MockServerRequest
...
Deprecate MockServerRequest in favor of ServerRequest::create
combined with a MockServerWebExchange.
2020-03-10 15:45:11 +01:00
Arjen Poutsma
c03cdbac21
CORS support in HTTP method predicate
...
This commit introduces CORS support for the HttpMethodPredicate in
WebMvc.fn and WebFlux.fn.
Closes gh-24564
2020-03-10 15:45:11 +01:00
Arjen Poutsma
fc12891006
Add ServerRequest::firstHeader
...
This commit introduces the method firstHeaderiin both WebMvc.fn and
WebFlux.fn, which return the first header value of a given header name,
if any.
2020-03-10 15:45:11 +01:00
Qimiao Chen
b92515bdee
Add logger.isInfoEnabled check before logger.info
...
Closes gh-24667
2020-03-10 14:41:20 +01:00
Sviatoslav Hryb
018ba92214
Fix formatting in AOP examples in documentation
2020-03-09 14:44:41 +00:00
Sviatoslav Hryb
f5195887c9
Fix ampersands in AOP examples in documentation
2020-03-09 13:27:55 +00:00
Qimiao Chen
7ce22e2f3a
Update IntroductionInfo example in reference manual
...
Closes gh-24650
2020-03-06 12:34:00 +01:00
Arjen Poutsma
2fb90cb16b
Support for byte-range requests in WebMvc.fn
...
This commit introduces support for byte-range requests in Servlet
Functional endpoints.
Closes gh-24562
2020-03-05 15:32:31 +01:00
Rossen Stoyanchev
c237338d8f
Merge pull request #24632 from sada-sigsci/sse_content_type
...
Closes gh-24632
2020-03-04 19:28:05 +00:00
Rossen Stoyanchev
7e03728b2c
Polishing contribution
...
See gh-24632
2020-03-04 19:27:37 +00:00
sada-sigsci
cc1f57823b
Remove charset from content-type in SseEmitter
...
See gh-24632
2020-03-04 19:27:37 +00:00
Rossen Stoyanchev
b2fe494b9c
Merge changes for ShallowEtagHeaderFilter
...
Closes gh-24635
2020-03-04 19:18:11 +00:00
Rossen Stoyanchev
a98bf30ee6
ShallowEtagHeaderFilter checks for pre-existing eTag
...
The filter now checks for an explicitly set eTag and uses it instead of
generating one, and also suppresses caching.
Closes gh-24635
2020-03-04 19:17:56 +00:00
Rossen Stoyanchev
c7e037da39
Remove unnecessary calls to disableContentCaching
...
These calls were added in error when trying to fix #22797 and #23775 .
They are not needed in 304 scenarios. Those have no response content and
are skipped by ShallowETagHeaderFilter based on the status.
This leaves disableContentCaching invoked only in streaming scenarios,
which was the original intent and should be the only reason for that
method.
See gh-24635
2020-03-04 19:17:56 +00:00
Rossen Stoyanchev
d3da7a50ec
Polishing and minor refactoring
...
See gh-24635
2020-03-04 19:17:56 +00:00
Rossen Stoyanchev
e7df445e37
Merge pull reqest #24617 from dreis2211/avoid-unnecessary-sorting
...
Closes gh-24617
2020-03-04 19:16:10 +00:00