Skip to content

Commit 3b2d8f7

Browse files
author
liufangtao
committed
set StripPrefix default to 1
1 parent 4b6644f commit 3b2d8f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/factory/StripPrefixGatewayFilterFactory.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ public String toString() {
8383

8484
public static class Config {
8585

86-
private int parts;
86+
/**
87+
* set default value to 1
88+
*/
89+
private int parts = 1;
8790

8891
public int getParts() {
8992
return parts;

0 commit comments

Comments
 (0)