Skip to content

spencergibb/spring-cloud-gateway-mvc-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud Gateway MVC Sample

Examples are in their own configuration file in src/main/java/com/example/gatewaymvcsample/Route*.java. The name of the class describes the predicate and/or filter being showcased.

There are also two routes, /hello and /hi, defined purely in Webmvc.fn in GatewayMvcApplication.

Run TestGatewayMvcApplication which uses Testcontainers to run a local httpbin.org.

Each file has some httpie commands to run to see it in action, such as:

or