File tree 3 files changed +23
-7
lines changed
spring-web/src/main/java/org/springframework/web/bind/annotation
3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 29
29
*
30
30
* <p>By default, all origins and headers are permitted.
31
31
*
32
- * <p><b>NOTE:</b> {@code @CrossOrigin} will only be processed if an appropriate
32
+ * <p><b>NOTE:</b> {@code @CrossOrigin} is processed if an appropriate
33
33
* {@code HandlerMapping}-{@code HandlerAdapter} pair is configured such as the
34
- * {@code RequestMappingHandlerMapping}-{@code RequestMappingHandlerAdapter} pair
35
- * which are the default in the MVC Java config and the MVC namespace.
34
+ * {@code RequestMappingHandlerMapping}-{@code RequestMappingHandlerAdapter}
35
+ * pair which are the default in the MVC Java config and the MVC namespace.
36
36
* In particular {@code @CrossOrigin} is not supported with the
37
37
* {@code DefaultAnnotationHandlerMapping}-{@code AnnotationMethodHandlerAdapter}
38
38
* pair both of which are also deprecated.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2014 the original author or authors.
2
+ * Copyright 2002-2016 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.
25
25
import org .springframework .stereotype .Controller ;
26
26
27
27
/**
28
- * A convenience annotation that is itself annotated with {@link Controller @Controller}
29
- * and {@link ResponseBody @ResponseBody}.
28
+ * A convenience annotation that is itself annotated with
29
+ * {@link Controller @Controller} and {@link ResponseBody @ResponseBody}.
30
30
* <p>
31
31
* Types that carry this annotation are treated as controllers where
32
32
* {@link RequestMapping @RequestMapping} methods assume
33
33
* {@link ResponseBody @ResponseBody} semantics by default.
34
34
*
35
+ * <p><b>NOTE:</b> {@code @RestController} is processed if an appropriate
36
+ * {@code HandlerMapping}-{@code HandlerAdapter} pair is configured such as the
37
+ * {@code RequestMappingHandlerMapping}-{@code RequestMappingHandlerAdapter}
38
+ * pair which are the default in the MVC Java config and the MVC namespace.
39
+ * In particular {@code @RestController} is not supported with the
40
+ * {@code DefaultAnnotationHandlerMapping}-{@code AnnotationMethodHandlerAdapter}
41
+ * pair both of which are also deprecated.
42
+ *
35
43
* @author Rossen Stoyanchev
36
44
* @author Sam Brannen
37
45
* @since 4.0
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 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.
34
34
* {@link ExceptionHandler @ExceptionHandler} methods assume
35
35
* {@link ResponseBody @ResponseBody} semantics by default.
36
36
*
37
+ * <p><b>NOTE:</b> {@code @RestControllerAdvice} is processed if an appropriate
38
+ * {@code HandlerMapping}-{@code HandlerAdapter} pair is configured such as the
39
+ * {@code RequestMappingHandlerMapping}-{@code RequestMappingHandlerAdapter} pair
40
+ * which are the default in the MVC Java config and the MVC namespace.
41
+ * In particular {@code @RestControllerAdvice} is not supported with the
42
+ * {@code DefaultAnnotationHandlerMapping}-{@code AnnotationMethodHandlerAdapter}
43
+ * pair both of which are also deprecated.
44
+ *
37
45
* @author Rossen Stoyanchev
38
46
* @since 4.3
39
47
*/
You can’t perform that action at this time.
0 commit comments