Which Component
spring-cloud-starter-alibaba-sentinel
Describe the bug
Sentinel-dashboard persists nacos, which nacos as a data source, and Sentinel integrates with the Spring Cloud Gateway. SentinelAutoConfiguration class SentinelProperties properties without access to yml file configuration data sources, SentinelProperties class add @ Component annotation to solve the problem.
To Reproduce
Steps to reproduce the behavior:
Package depends on
Which Component spring-cloud-starter-alibaba-sentinel
Describe the bug Sentinel-dashboard persists nacos, which nacos as a data source, and Sentinel integrates with the Spring Cloud Gateway. SentinelAutoConfiguration class SentinelProperties properties without access to yml file configuration data sources, SentinelProperties class add @ Component annotation to solve the problem.
To Reproduce Steps to reproduce the behavior: Package depends on
application.yml
spring: application: name: xxxx cloud: sentinel: datasource: ns: nacos: server-addr: xxx.xxx.xxx:80 data-id: wxxx-gateway-rules namespace: sentinel-dev group-id: SENTINEL_GROUP data-type: json rule-type: gw-flow Screenshots
Additional context MacOS 、Java8 、 Version spring-cloud-starter-alibaba-sentinel-2.2.1.RELEASE