-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
Travis Smith opened SPR-13377 and commented
I think it would be awesome to be able to apply Filters or perhaps Interceptors as annotations. E.g.
@Controller
public class DefaultController {
@RequestMapping("/")
@ResponseBody
String home() {
return "Hello World!";
}
}
And we want to apply some specific, custom authentication to that controller or request handlers.
@Controller
@MyAuthenticationFilter
public class DefaultController {
@RequestMapping("/")
@ResponseBody
String home() {
return "Hello World!";
}
}
Or maybe @Filter(MyAuthenticationFilter.class) could work as well.
Issue Links:
- @HandlerInterceptor [SPR-4770] #9447
@HandlerInterceptor("duplicates")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement