Better description for DispatcherServlet's "No adapter for handler: Does your handler implement a supported interface like Controller?" exception message [SPR-8338] #12986
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Andrei Stefan opened SPR-8338 and commented
At the moment DispatcherServlet in its getHandlerAdapter() method throws an exception in case no adapter is found for a specific handler and the message the exception contains puts more focus on the idea that the handler might not implement a certain interface.
Could be worth considering another message, that should put equal focus on the missing interface implementation and, also, on the fact that the adapter itself might not be defined for that particular handler? Maybe, something around these lines: "No adapter for handler [" + handler + "]: Does your handler implement a supported interface like Controller or have you defined all needed handler adapters?"
Affects: 2.0.9, 2.5.6, 3.0.5
1 votes, 4 watchers
The text was updated successfully, but these errors were encountered: