Polishing
This commit is contained in:
parent
842b424acd
commit
f0b2f7186a
|
|
@ -917,9 +917,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
|||
}
|
||||
List<InvocableHandlerMethod> attrMethods = new ArrayList<>();
|
||||
// Global methods first
|
||||
this.modelAttributeAdviceCache.forEach((clazz, methodSet) -> {
|
||||
if (clazz.isApplicableToBeanType(handlerType)) {
|
||||
Object bean = clazz.resolveBean();
|
||||
this.modelAttributeAdviceCache.forEach((controllerAdviceBean, methodSet) -> {
|
||||
if (controllerAdviceBean.isApplicableToBeanType(handlerType)) {
|
||||
Object bean = controllerAdviceBean.resolveBean();
|
||||
for (Method method : methodSet) {
|
||||
attrMethods.add(createModelAttributeMethod(binderFactory, bean, method));
|
||||
}
|
||||
|
|
@ -951,9 +951,9 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
|
|||
}
|
||||
List<InvocableHandlerMethod> initBinderMethods = new ArrayList<>();
|
||||
// Global methods first
|
||||
this.initBinderAdviceCache.forEach((clazz, methodSet) -> {
|
||||
if (clazz.isApplicableToBeanType(handlerType)) {
|
||||
Object bean = clazz.resolveBean();
|
||||
this.initBinderAdviceCache.forEach((controllerAdviceBean, methodSet) -> {
|
||||
if (controllerAdviceBean.isApplicableToBeanType(handlerType)) {
|
||||
Object bean = controllerAdviceBean.resolveBean();
|
||||
for (Method method : methodSet) {
|
||||
initBinderMethods.add(createInitBinderMethod(bean, method));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue