Browse Source

Update Javadoc since type-level @Controller is now required

See gh-22154 which removed support for a type-level @RequestMapping
annotation alone being sufficient for handler detection.

Closes gh-28448
pull/28453/head
Andy Wilkinson 4 years ago committed by Sam Brannen
parent
commit
1d825440c3
  1. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java

3
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java

@ -261,8 +261,7 @@ public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi @@ -261,8 +261,7 @@ public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
/**
* {@inheritDoc}
* <p>Expects a handler to have either a type-level @{@link Controller}
* annotation or a type-level @{@link RequestMapping} annotation.
* <p>Expects a handler to have a type-level @{@link Controller} annotation.
*/
@Override
protected boolean isHandler(Class<?> beanType) {

Loading…
Cancel
Save