Spring Cloud Alibaba Sentinel 2.2.0.RELEASE URL 资源不能正常显示
spring-cloud-alibaba-dependencies使用2.1.0.RELEASE可以正常显示,但使用2.2.0.RELEASE却显示了/error和/**,不能显示想要的资源名而且要刷新sentinel页面很多次才能看到数据

正好解决这个问题,我估计是版本造成的问题,换成2.1.0就好了。2.2.0版本的sentinel-record日志如下:最后有一句: Runtime port not initialized, won't send heartbeat
我觉得是版本引起这个原因的。
2020-04-10 15:23:54.762 INFO App name resolved: project
2020-04-10 15:23:54.765 INFO [SentinelConfig] Application type resolved: 0
2020-04-10 15:23:54.778 INFO [SimpleHttpHeartbeatSender] Default console address list retrieved: [localhost/127.0.0.1:8098]
2020-04-10 15:23:54.780 INFO [SpiLoader] Found HeartbeatSender SPI: com.alibaba.csp.sentinel.transport.heartbeat.SimpleHttpHeartbeatSender with order 2147483647
2020-04-10 15:23:54.782 INFO [HeartbeatSenderProvider] HeartbeatSender activated: com.alibaba.csp.sentinel.transport.heartbeat.SimpleHttpHeartbeatSender
2020-04-10 15:23:54.783 INFO [SimpleHttpHeartbeatSender] Runtime port not initialized, won't send heartbeat
我今天也发现了这个问题,我的也是2.2.0-RELEASE,
原因是这样的,servlet模式下,源码里给sentinel的拦截器默认配置的拦截路径是/*,那么也就默认只拦一级路径,可以通过配置参数修改该filter的拦截匹配为/**
spring.cloud.sentinel.filter.url-patterns=/**
com.alibaba.cloud.sentinel.SentinelProperties 348行
private List
spring-cloud-alibaba 2.2.1.RELEASE 已修复此问题
Related to #1380.