RequestMapping works on private methods [SPR-16878] #21417
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
Vipin VijayKumar opened SPR-16878 and commented
Where would we use
@RequestMapping
with private methods? Is there a specific use caseThe reason why I am asking this is that I noticed that
@RequestMapping
worked on private methods as well. Why is this so?Is it because spring access these methods through reflections so access modifiers aren't really considered? Is this a bug or a feature that has uses?
No further details from SPR-16878
The text was updated successfully, but these errors were encountered: