This commit is contained in:
tanghc
2019-12-19 15:36:48 +08:00
parent 93b48088e3
commit dfcd4d42d7

View File

@@ -31,7 +31,9 @@ public class ApiMappingHandlerMapping extends RequestMappingHandlerMapping imple
if (apiMapping != null || apiAbility != null) { if (apiMapping != null || apiAbility != null) {
valueResolver = isMvc ? stringValueResolverMVC : stringValueResolver; valueResolver = isMvc ? stringValueResolverMVC : stringValueResolver;
} }
this.setEmbeddedValueResolver(valueResolver); if (valueResolver != null) {
this.setEmbeddedValueResolver(valueResolver);
}
return super.getMappingForMethod(method, handlerType); return super.getMappingForMethod(method, handlerType);
} }