Compare commits
2 Commits
e5f55d78b3
...
f19c8b550c
Author | SHA1 | Date | |
---|---|---|---|
f19c8b550c | |||
54238349a4 |
6
pom.xml
6
pom.xml
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user