This commit is contained in:
tanghc
2019-12-23 11:13:51 +08:00
parent dfcd4d42d7
commit 774d092465
2 changed files with 2 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ SOP封装了开放平台大部分功能包括签名验证、统一异常处
## 分支说明
- master发版分支
- spring-cloud-gatewaySpring Cloud Gateway作为网关
- spring-cloud-gatewaySpring Cloud Gateway作为网关(不推荐)
- develop日常开发分支
- eureka使用eureka注册中心
- 1.x老的1.x版本代码

View File

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