Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

sentinel 客户端的向 控制台提交的 和端口 能否支持 spring boot 的配置文件,而不是使用 JVM参数

Open li3807 opened this issue 7 years ago • 3 comments

sentinel 客户端的向 控制台提交的 和端口 能否支持 spring boot 的配置文件,而不是使用 JVM参数,使用 jvm 参数不便与包装

li3807 avatar Jan 14 '19 10:01 li3807

Hi, Spring Cloud Alibaba Sentinel supports property configuration via Spring application.properties file. You can refer to the example here: https://github.com/spring-cloud-incubator/spring-cloud-alibaba/blob/master/spring-cloud-alibaba-examples/sentinel-example/sentinel-core-example/readme.md

sczyh30 avatar Jan 14 '19 11:01 sczyh30

多谢,我去看看

li3807 avatar Jan 14 '19 13:01 li3807

启动参数也可以,以Java代码System.setProperties(key,value),value再以Spel表达式写在application.properties中,也可以达到这种效果.

TenYearsIn avatar Jan 16 '19 15:01 TenYearsIn