tanghc 5 years ago
parent 93b48088e3
commit dfcd4d42d7
  1. 4
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/mapping/ApiMappingHandlerMapping.java

@ -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);
} }

Loading…
Cancel
Save