Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Sep 17, 2024
2 parents 1230c52 + 9fb28ee commit c034741
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2-advanced/dubbo-samples-triple-servlet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This example shows how to enable servlet support for triple protocol.

## Benefits

After enabled Servlet support, Triple protocol requests will be forward to the servlet server, allowing to use features of servlet container such as filters.
This also avoids the maintenance costs associated with adding extra server port and uri mapping, makes it easier to penetrate firewalls and gateways.
After enabled Servlet support, triple protocol reuse existing Spring Boot servlet listening ports to handle HTTP traffic, eliminating the need for Netty to listen on new ports,
that allowing user to use features of servlet container such as filters. This also avoids the maintenance costs associated with adding extra server port and uri mapping, makes it easier to penetrate firewalls and gateways.

## How to run

Expand Down Expand Up @@ -64,7 +64,7 @@ Note that only spring boot3 is required, spring boot2 has been imported by dubbo

### Add the following configuration to `application.yml` to enable servlet support

Note that when set the triple port to be the same as the servlet server, triple will no longer start netty port listening, all requests will be forward to the servlet server.
Note that when set the triple port to be the same as the servlet server, triple will no longer start netty port listening, all requests come from servlet server.

```yaml
server:
Expand Down

0 comments on commit c034741

Please sign in to comment.