spring-projects-experimental / spring-fu

Configuration DSLs for Spring Boot
Apache License 2.0
1.67k stars 139 forks source link

Add default resource with static content #298

Closed Kotlin-GDE closed 4 years ago

Kotlin-GDE commented 4 years ago

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)

sdeleuze commented 4 years ago

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