Compare commits

..

2 Commits

Author SHA1 Message Date
wangyu f19c8b550c fix: 修复小问题 2024-05-27 17:16:32 +08:00
wangyu 54238349a4 fix: 修复路径参数识别的bug 2024-05-27 17:13:38 +08:00
4 changed files with 6 additions and 6 deletions

View File

@ -7,13 +7,13 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.7</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>group.flyfish</groupId>
<artifactId>rest-proxy</artifactId>
<version>1.1.7</version>
<version>1.1.8</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
@ -22,7 +22,7 @@
<java.version>1.8</java.version>
<commons-collection.version>4.4</commons-collection.version>
<commons.lang.version>2.6</commons.lang.version>
<sdk.version>1.1.7</sdk.version>
<sdk.version>1.1.8</sdk.version>
</properties>
<packaging>pom</packaging>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>group.flyfish</groupId>
<artifactId>rest-proxy</artifactId>
<version>1.1.7</version>
<version>1.1.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>group.flyfish</groupId>
<artifactId>rest-proxy</artifactId>
<version>1.1.7</version>
<version>1.1.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -36,6 +36,6 @@ public class RestPathParamArgumentResolver implements RestArgumentResolver {
public void resolve(ArgumentResolveContext context, Parameter parameter, Object value) {
RestPathParam annotation = parameter.getAnnotation(RestPathParam.class);
String name = DataUtils.isNotBlank(annotation.value()) ? annotation.value() : parameter.getName();
context.setPathParam(parameter.getName(), value);
context.setPathParam(name, value);
}
}