Freeman Lau
d36ee864fd
Fixed checkstyle.
3 years ago
Steve Rao
0344862f62
Merge pull request #2360 from DanielLiu1123/nacos_fault_tolerance
...
Nacos failure tolerance
3 years ago
Freeman Lau
61c2c31cf7
Fixed checkstyle.
3 years ago
Freeman Lau
6f3a5d892a
Register NacosConfigManager instead of ConfigService.
...
Avoiding import *
Avoiding invoke `getUri` repeatedly
3 years ago
Freeman Lau
08f5438ab0
Set default to false.
...
Avoiding import *
3 years ago
Freeman Lau
5850798977
Add new configuration item.
...
Fixed equals and hash method.
Replaced StringUtils, Spring's isEmpty method is deprecated.
3 years ago
Freeman Lau
9a4a7d6f42
feature: Nacos failure tolerance.
...
增加 nacos 失败容错功能, 在查询失败时使用缓存值
3 years ago
Freeman Lau
96157efaf6
Optimize binding logic.
3 years ago
Freeman Lau
abe1f22345
Fix nacos common properties can't bind.
...
修复 nacos 通用属性无法绑定的问题
3 years ago
Freeman Lau
65e1eff7d6
Make bootstrap starter optional.
...
在 spring boot >= 2.4.0 版本应该由用户决定是使用 bootstrap 还是 import 方式导入外部配置
3 years ago
Freeman Lau
6779603fb4
Merge remote-tracking branch 'origin/2020.0.0' into support_spring_config_import
3 years ago
Freeman Lau
e3ce3ee92d
Downgrade boot version.
...
Temporarily remove the extension class and add it when the boot version is greater than 2.4.5.
3 years ago
Freeman Lau
769bced209
Use NacosConfigManager to create ConfigService.
...
Modify whether is PROFILE_SPECIFIC logic.
Make NacosBootstrapper method public.
3 years ago
Freeman Lau
dec4c63b52
Refresh feign client rules only.
...
现在只刷新 feign client 熔断规则, 手动添加或者通过 dashboard 和数据源配置的规则不会受到影响
3 years ago
Freeman Lau
21e22e0696
ref: Remove ConfigServiceIndexes
...
重构代码
dataId 不可缺省, 通过参数覆盖默认配置
3 years ago
Freeman Lau
8958392914
Refactor configuration
...
重构配置方式, 不需要将 serverAddr 写在 import 里
保留以前版本的拉取配置逻辑, 保证能够平滑升级
3 years ago
Freeman Lau
5786ba51eb
Support spring.config.import
...
支持 import 方式
3 years ago
Freeman Lau
77b3d7922b
fix: Keep rules in dataSource
...
保留数据源中配置
3 years ago
Freeman Lau
b96b762001
Add unit test
...
添加相关单元测试
现在没有配置 dataId 时会默认使用 {application}-{profile}.{fileExtension}
3 years ago
Freeman Lau
695938280f
fix: Remove dummy method
3 years ago
Freeman Lau
83873e5fbe
feature: support spring.config.import
...
支持 spring boot >= 2.4.0 通过 spring.config.import
方式引入 nacos 配置
3 years ago
Freeman Lau
e8ff4d8f4f
fix: Adjust unit test configuration
...
增大 timeWindow 值, 降低单测不过情况的概率
3 years ago
Freeman Lau
2f6e12d0a7
feature: Support dynamic refresh circuit breaker rules
...
支持断路器规则的动态刷新
3 years ago
Freeman Lau
0a04d921a4
fix: change Feign client single method configuration key
...
Change key format, UserClient#methodName(Type,Type) -> user#methodName(Type,Type).
String before the '#', changed to Feign client name.
Fix code format.
3 years ago
Freeman Lau
1ce2501bc0
fix: comment and blank
3 years ago
Freeman Lau
2342f23bf3
feature: support configuration per Feign client
...
Note: it depends on spring cloud openfeign version in classpath.
If using spring-cloud-openfeign-core version >= 3.0.4, you can configure for per Feign client. Otherwise, you can only configure for per Feign client' single method.
Fix test.
3 years ago
Freeman Lau
eb59569d35
feature: support feign client custom configuration
...
There's a potential problem, if CircuitBreakerFactory was injected in spring's lifecycle, will possibly get the raw one(not customized). So, remove ReactiveSentinelCircuitBreakerAutoConfiguration and SentinelCircuitBreakerAutoConfiguration inner configuration class.
3 years ago
ZhangC
3edcc41099
fixup: issue#2300
...
Use the legacy bootstrap way in newer spring-cloud version
3 years ago
XuDaojie
9eb5233dcb
update nacos-discovery default don't use NacosLoadBalancer
4 years ago
XuDaojie
f0edd0f820
update nacos-dicovery.additional-spring-configuration-metadata.json
4 years ago
XuDaojie
3c769a9ba7
remove ConditionalOnLoadBalancerNacosDefault.java
4 years ago
XuDaojie
914e86fa21
remove NoneLoadBalancerCacheManager.java
4 years ago
XuDaojie
eea363bda4
update ServiceInstanceListSupplier.builder() don't use withCache()
4 years ago
XuDaojie
e4d467f359
update loadbalancer.nacos.enabled -> spring.cloud.loadbalancer.nacos.enabled
4 years ago
XuDaojie
fbc7f9d985
add NoneLoadBalancerCacheManager
4 years ago
XuDaojie
cf13c1cfe8
format code
4 years ago
XuDaojie
ae5f25f22d
add NacosLoadBalancer
4 years ago
theonefx
76cfd2c7fe
port optimize
4 years ago
theonefx
a80e9106a6
reformat
4 years ago
theonefx
e8cd8f4dab
reformat
4 years ago
theonefx
65fd0ebeca
Adapt to the latest implementation
4 years ago
theonefx
ed9d659d64
remote all hystrix,zuul,ribbon
4 years ago
theonefx
de5ca9540e
add spring-cloud-starter-bootstrap to compatible with spring boot bootstrap
4 years ago
theonefx
da19750268
sentinel unit test pass
4 years ago
theonefx
e7521c02c9
2020 build done, unit test failed
4 years ago
theonefx
1492ad5693
upgrade spring cloud version to 2020.0.1
4 years ago
theonefx
d9727bb31f
Use spring.cloud.version instead of the version number of each component
4 years ago
theonefx
0471b45662
Merge remote-tracking branch 'up/master' into endpoints
4 years ago
theonefx
6924f0c3be
add service instance change event listener order
4 years ago
theonefx
8542756d90
dubbo endpoint
4 years ago