sentinel 搭配nacos 提示错误
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Issue Description
I configure sentinel to persist through Nacos, and always prompt errors. I think the configuration is normal
### Describe what happened (or what feature you want)
It can be persisted through Nacos normally
### Describe what you expected to happen
Description:
Failed to bind properties under 'spring.cloud.sentinel.datasource.flow.nacos' to com.alibaba.cloud.sentinel.datasource.config.NacosDataSourceProperties:
Reason: HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'. Check configuration for 'dataId'
### How to reproduce it (as minimally and precisely as possible)
1. pring:
profiles: dev
cloud:
sentinel:
transport:
dashboard: 192.168.192.24:19999
port: 8719
datasource:
flow:
nacos:
serverAddr: 192.168.192.24:20200 #nacos服务器地址
username: 123
password: 123
dataId: JClientConsumer-sentinel.json
groupId: DEFAULT_GROUP
namespace: dev #命名空间
nacos:
config:
server-addr: 192.168.192.24:20200
file-extension: yaml
namespace: dev
username: 123
password: 123
extension-configs:
- data-id: All-service-dev.yaml
group: DEFAULT_GROUP
refresh: true
2.
3.
### Tell us your environment
jdk1.8, Hoxton.SR9
2.3.7.RELEASE
2.2.6.RELEASE
### Anything else we need to know?
Contributor guide
Research direction
Start by reproducing the reported binding failure with the supplied Spring Cloud Alibaba 2.2.6, Spring Boot 2.3.7, and Nacos configuration. Confirm whether the configuration binds successfully and persists Sentinel flow data through Nacos, while identifying the cause of the dataId validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100