spring-projects-experimental/spring-fu

Add default resource with static content

Closed this issue · 1 comments

hi

add default resource with static content

   defaultResource(path: String, resource: Resource)

its useful request url without specify any resource name (ex: HTTP://HOST:PORT in this case and if index.html is present in resource its automatic loaded to client as default response)

resources("/**", ClassPathResource("static/")) is already added for both WebFlux and WebMvc.