Commit f1555319 authored by Andy Wilkinson's avatar Andy Wilkinson

Correct static-path-pattern property in WebFlux documentation

Closes gh-10843
parent 806cf325
...@@ -2461,12 +2461,12 @@ By default, Spring Boot serves static content from a directory called `/static` ...@@ -2461,12 +2461,12 @@ By default, Spring Boot serves static content from a directory called `/static`
your own `WebFluxConfigurer` and overriding the `addResourceHandlers` method. your own `WebFluxConfigurer` and overriding the `addResourceHandlers` method.
By default, resources are mapped on `+/**+`, but you can tune that by setting the By default, resources are mapped on `+/**+`, but you can tune that by setting the
`spring.mvc.static-path-pattern` property. For instance, relocating all resources to `spring.webflux.static-path-pattern` property. For instance, relocating all resources to
`/resources/**` can be achieved as follows: `/resources/**` can be achieved as follows:
[source,properties,indent=0,subs="verbatim,quotes,attributes"] [source,properties,indent=0,subs="verbatim,quotes,attributes"]
---- ----
spring.mvc.static-path-pattern=/resources/** spring.webflux.static-path-pattern=/resources/**
---- ----
You can also customize the static resource locations by using You can also customize the static resource locations by using
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment