請(qǐng)問(wèn)用yml配置文件,一段時(shí)間之后網(wǎng)關(guān)就會(huì)報(bào) :數(shù)組越界的異常重啟就好了,樓主有遇到這個(gè)情況嗎。reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator.combinePredicates(RouteDefinitionRouteLocator.java:221)
at org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator.convertToRoute(RouteDefinitionRouteLocator.java:143)
Gateway動(dòng)態(tài)路由實(shí)現(xiàn)一、Gateway路由主要有兩種方式 1、用yml配置文件 2、寫(xiě)在代碼里 無(wú)論是哪一種,在啟動(dòng)網(wǎng)關(guān)后將無(wú)法修改路由配置,如有新服務(wù)要上線,則需要先把網(wǎng)關(guān)下線,修改 yml ...