You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ModelArgumentResolver.java
+10-4
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2018 the original author or authors.
2
+
* Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@
30
30
* Resolver for a controller method argument of type {@link Model} that can
31
31
* also be resolved as a {@link java.util.Map}.
32
32
*
33
+
* <p>A Map return value can be interpreted in more than one ways depending
34
+
* on the presence of annotations like {@code @ModelAttribute} or
35
+
* {@code @ResponseBody}. As of 5.2 this resolver returns false if a
36
+
* parameter of type {@code Map} is also annotated.
37
+
*
33
38
* @author Rossen Stoyanchev
34
39
* @since 5.0
35
40
*/
@@ -42,9 +47,10 @@ public ModelArgumentResolver(ReactiveAdapterRegistry adapterRegistry) {
Copy file name to clipboardExpand all lines: spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ModelArgumentResolverTests.java
+26-16
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2017 the original author or authors.
2
+
* Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments