遇到的问题1:
Description:
Failed to bind properties under 'zuul.routes' to java.util.Map<java.lang.String, org.springframework.cloud.netflix.zuul.filters.ZuulProperties$ZuulRoute>:
Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, org.springframework.cloud.netflix.zuul.filters.ZuulProperties$ZuulRoute>]
Action:
Update your application's configuration
解决方法:
配置网关的application.yml里的Zuul时出现错误
zuul:
prefix: /api
routes:
忘记添加微服务的路由映射item-service,添加 item-service: /item/**
zuul:
prefix: /api
routes:
item-service: /item/**