From dfcd4d42d75fcee4bc9e84d4becf32e8b790cfe8 Mon Sep 17 00:00:00 2001 From: tanghc Date: Thu, 19 Dec 2019 15:36:48 +0800 Subject: [PATCH] 2.5.8 --- .../sop/servercommon/mapping/ApiMappingHandlerMapping.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/mapping/ApiMappingHandlerMapping.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/mapping/ApiMappingHandlerMapping.java index 17f4b765..76f24c78 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/mapping/ApiMappingHandlerMapping.java +++ b/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) { valueResolver = isMvc ? stringValueResolverMVC : stringValueResolver; } - this.setEmbeddedValueResolver(valueResolver); + if (valueResolver != null) { + this.setEmbeddedValueResolver(valueResolver); + } return super.getMappingForMethod(method, handlerType); }