sentinel配置持久化在gateway碰到的一个问题
2020-08-25 本文已影响0人
有梦想的农民
今天在学习RuoYi-Cloud项目的时候,整合到网关的时候,碰到了一个问题...
主要环境: spring-cloud-gateway, nacos,sentinel
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-08-25 15:54:57.760 ERROR 16060 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.cloud.sentinel.datasource.ds1.nacos.rule-type' to com.alibaba.cloud.sentinel.datasource.RuleType:
Property: spring.cloud.sentinel.datasource.ds1.nacos.rule-type
Value: flow
Origin: class path resource [bootstrap.yml]:44:24
Reason: 2
Action:
Update your application's configuration
大概意思是绑定rule-type属性报错,可是想了半天,又跑去若依的源码那对了一遍,发现配置并没有问题,
又跑去网上找原因,看到这篇博客https://blog.csdn.net/csdn370139800/article/details/105892522
/惊呆/惊呆/惊呆 三连... JDK版本问题,抱着疑问的态度看了一下自己的JDK版本(更换后的版本)

更换之前似乎好像是1.8.0.25版本
重启启动gateway,确实又没有报这个问题了。虽然很吃惊../笑哭...但目前也没辙...因此记录一下,避免自己后面再踩到,摔倒两次可就不好了/笑哭....