handle“/”和zuul反向代理

20jt8wwn  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(234)

我很容易启动并运行zuul,并将配置添加到application.properties,但我还需要处理“/”。这是我的application.properties。代码与github相同-https://github.com/spring-guides/gs-routing-and-filtering.git.
我怎么处理“/”?例如,我想在浏览器中输入“localhost”并将其重定向到static。

zuul.routes.myapp.url=http://localhost:3000
zuul.routes.api.url=http://localhost:5000/api
zuul.routes.static.url=http://localhost:81/

ribbon.eureka.enabled=false

server.port=80

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题