1

我正在使用spring-cloud-starter-zuul作爲我的多個應用程序的網關。當我嘗試撥打我的angular2應用程序與斜槓http://localhost:8080/console/它工作正常,但是當我打電話沒有斜槓http://localhost:8080/console得到404 (Not Found)錯誤。當拖尾斜槓缺失時找不到資源Spring雲Zuul

這裏是我的zuul配置

zuul: 
    routes: 
    angui: 
     path: console/** 
     url: http://localhost:8888/ 
    service1: 
     path: service1/** 
     url: http://service1URL 
    service2: 
     path: service2/** 
     url: http://service2URL 

回答