- 06 5月, 2015 3 次提交
-
-
由 Sam Brannen 提交于
- Methods which search for a specific annotation now properly ensure that the sought annotation was actually found. - Both the "get" and the "find" search algorithms no longer needlessly traverse meta-annotation hierarchies twice. - Both the "get" and the "find" search algorithms now properly increment the metaDepth when recursively searching within the meta-annotation hierarchy. - Redesigned getMetaAnnotationTypes() so that it doesn't needlessly search irrelevant annotations. - Documented and tested hasMetaAnnotationTypes(). - Documented isAnnotated(). Issue: SPR-11514
-
由 Rossen Stoyanchev 提交于
Before this change AbstractHandlerMethodMapping used a map from Method to CorsConfiguration. That works for regular @RequestMapping methods. However frameworks like Spring Boot and Spring Integration may programmatically register the same Method under multiple mappings, i.e. adapter/gateway type classes. This change ensures that CorsConfiguraiton is indexed by HandlerMethod so that we can store CorsConfiguration for different handler instances even when the method is the same. In order for to make this work, HandlerMethod now provides an additional field called resolvedFromHandlerMethod that returns the original HandlerMethod (with the String bean name). This makes it possible to perform reliable lookups. Issue: SPR-11541
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11541
-
- 05 5月, 2015 17 次提交
-
-
由 Sam Brannen 提交于
This commit introduces failing (but currently disabled) test cases in HandlerMethodAnnotationDetectionTests that attempt to reproduce the scenario described in SPR-9517. See: ParameterizedSubclassDoesNotOverrideConcreteImplementationsFromGenericAbstractSuperclass Furthermore, this commit also introduces passing tests cases for a similar scenario. See: ParameterizedSubclassOverridesDefaultMappings Issue: SPR-9517
-
由 Sam Brannen 提交于
-
由 Brian Clozel 提交于
Since SPR-10954, the SimpleBrokerMessageHandler supports `heart-beats`. Even if the STOMP spec states that the `heart-beat` header is OPTIONAL, and if absent considered as `heart-beat: 0,0`, some clients rely on this to be set in CONNECTED frames. This commit adds this header information even if no task scheduler/heart-beat have been configured. See: https://stomp.github.io/stomp-specification-1.2.html#Heart-beating Issue: SPR-10954
-
由 Sam Brannen 提交于
Do not refer to deprecated ParameterizedBeanPropertyRowMapper in reference manual Change to the BeanPropertyRowMapper from the ParameterizedBeanPropertyRowMapper
-
由 Sam Brannen 提交于
Issue: SPR-12979
-
由 Sam Brannen 提交于
Fix description of JdbcTemplate's resultsMapCaseInsensitive support in reference manual
-
由 Kazuki Shimizu 提交于
Issues: SPR-12980
-
由 Sam Brannen 提交于
Fixes bad grammar in reference document
-
由 Kazuki Shimizu 提交于
Issue: SPR-12981
-
由 Sam Brannen 提交于
-
由 Brian Clozel 提交于
-
由 Sam Brannen 提交于
-
由 Sebastien Deleuze 提交于
Issue: SPR-12266
-
由 Kazuki Shimizu 提交于
Issue: SPR-12979
-
由 Rossen Stoyanchev 提交于
CorsConfiguration now provides methods to check and determine the allowed origin, method, and headers according to its own configuration. This simplifies significantly the work that needs to be done from DefaultCorsProcessor. However an alternative CorsProcessor can still access the raw CorsConfiguration and perform its own checks. Issue: SPR-12885
-
由 Sebastien Deleuze 提交于
This commit adds CORS related headers to HttpHeaders and update DefaultCorsProcessor implementation to use ServerHttpRequest and ServerHttpResponse instead of HttpServletRequest and HttpServletResponse. Usage of ServerHttpResponse allows to avoid using Servlet 3.0 specific methods in order keep CORS support Servlet 2.5 compliant. Issue: SPR-12885
-
由 Rossen Stoyanchev 提交于
The change to provide public register/unregister methods in AbstractHandlerMethodMapping assumed that a single method cannot be mapped more than once. This is not the case with the MvcEndpoints and EndpointHandlerMapping from Spring Boot which wrap one or more non-web Endpoint types with an MvcEndpointAdapter in order to expose them for use over the web. In effect Spring MVC sees a single handler method mapped many times. This change removes that assumption so rather than unregistering with a HandlerMethod, which is not necessarily unique, the unregister method now takes the actual mapping, which is the only thing that should actually be unique. Issue: SPR-11541
-
- 04 5月, 2015 16 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12977
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12962
-
由 Sam Brannen 提交于
Issue: SPR-11514
-
由 Brian Clozel 提交于
Issue: SPR-12469
-
由 Sam Brannen 提交于
This commit adds additional context to the exception message generated when two candidate methods are discovered in MvcUriComponentsBuilder's getMethod(Class<?>, String, Object...). Issue: SPR-12977
-
由 Sam Brannen 提交于
This commit introduces a new fromMethodNameWithBridgedMethod() test in MvcUriComponentsBuilderTests which is currently disabled via @Ignore until this bug is resolved. Issue: SPR-12977
-
由 Brian Clozel 提交于
When used in combination with GzipResourceResolver, the CachingResourceResolver does not properly cache results, since it only takes the request path as a input for cache key generation. Here's an example of that behavior: 1. an HTTP client requests a resource with `Accept-Encoding: gzip`, so the GzipResourceResolver can resolve a gzipped resource. 2. the configured CachingResourceResolver caches that resource. 3. another HTTP client requests the same resource, but it does not support gzip encoding; the previously cached gzipped resource is still returned. This commit uses the presence/absence of gzip encoding support as an input in cache keys generation. Issue: SPR-12982
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11541
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11541
-
由 Rossen Stoyanchev 提交于
Before this change AbstractHandlerMethodMapping contained multiple maps all containing different kinds of mapping meta-data. After the change a MappingDefinitionRegistry inner class encapsulates these fields along with their initialization code. Issue: SPR-11541
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11541
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12960
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12956
-
由 Rossen Stoyanchev 提交于
Issue: SPR-12955
-
- 03 5月, 2015 2 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Issue: SPR-12969
-
- 02 5月, 2015 1 次提交
-
-
由 Sam Brannen 提交于
-
- 30 4月, 2015 1 次提交
-
-
由 Stephane Maldini 提交于
-