Use MessageSource in HandlerMethod for error reason
Closes gh-27156
This commit is contained in:
@@ -337,7 +337,9 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
|
||||
protected HandlerMethod createHandlerMethod(Object handler, Method method) {
|
||||
if (handler instanceof String) {
|
||||
return new HandlerMethod((String) handler,
|
||||
obtainApplicationContext().getAutowireCapableBeanFactory(), method);
|
||||
obtainApplicationContext().getAutowireCapableBeanFactory(),
|
||||
obtainApplicationContext(),
|
||||
method);
|
||||
}
|
||||
return new HandlerMethod(handler, method);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user