Skip to content

Commit 2071ee4

Browse files
author
shibo
committed
实现过滤器。
1 parent 4e6260c commit 2071ee4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

02nio/nio02/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
<plugin>
7979
<groupId>org.springframework.boot</groupId>
8080
<artifactId>spring-boot-maven-plugin</artifactId>
81+
<version>2.3.0.RELEASE</version>
8182
</plugin>
8283
</plugins>
8384
</build>

02nio/nio02/src/main/java/io/github/kimmking/gateway/filter/HeaderHttpRequestFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public class HeaderHttpRequestFilter implements HttpRequestFilter {
77

88
@Override
99
public void filter(FullHttpRequest fullRequest, ChannelHandlerContext ctx) {
10-
fullRequest.headers().set("mao", "soul");
10+
fullRequest.headers().set("platform", "geekTimeHomeWork");
1111
}
1212
}

0 commit comments

Comments
 (0)