Skip to content

Commit b0fc461

Browse files
committed
Update javadoc as type-level @controller is now required
See spring-projectsgh-22154 which removed support for a type-level @RequestMapping annotation alone being sufficient for handler detection.
1 parent e6c0152 commit b0fc461

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ public RequestMappingInfo.BuilderConfiguration getBuilderConfiguration() {
261261

262262
/**
263263
* {@inheritDoc}
264-
* <p>Expects a handler to have either a type-level @{@link Controller}
265-
* annotation or a type-level @{@link RequestMapping} annotation.
264+
* <p>Expects a handler to have a type-level @{@link Controller} annotation.
266265
*/
267266
@Override
268267
protected boolean isHandler(Class<?> beanType) {

0 commit comments

Comments
 (0)