These are chat archives for spring-cloud/spring-cloud

18th
Dec 2018
Dani
@Dinodanio
Dec 18 2018 09:38

Good morning everyone. I try to serve my static vuejs app via spring cloud gateway and it's located outside of the JAR container. I mapped the static location by the configuration.

spring:
  resources:
    static-locations: file:/usr/share/nginx/html/

Now if i call the root page the favicon will be loaded but the static html not. Do i have to add something the route section?
Like:

.route(p -> p
            .path("/**")
            .uri("path_to_static))
Spencer Gibb
@spencergibb
Dec 18 2018 17:05
@Dinodanio spring boot static files should just work as long as they don't match any route
BenEfrati
@BenEfrati
Dec 18 2018 18:51
Hi,
Does Greenwhich RELEASE will include resilience4j support (AutoConfiguration etc..)?
Spencer Gibb
@spencergibb
Dec 18 2018 18:51
resilience4j already provides autoconfiguration for spring boot
BenEfrati
@BenEfrati
Dec 18 2018 18:53
@spencergibb Thanks, good to know. So if I want to use it, no need to wait for Greenwhich release? or it related to SP 2.1?
Spencer Gibb
@spencergibb
Dec 18 2018 18:53
no need to wait
BenEfrati
@BenEfrati
Dec 18 2018 18:53
Great, thanks