apollo-java
apollo-java copied to clipboard
Apollo Java Clients
## What's the purpose of this PR Apollo openapi calls add client real IP information ## Which issue(s) this PR fixes: Fixes # ## Brief changelog XXXXX Follow this checklist...
## What's the purpose of this PR XXXXX ## Which issue(s) this PR fixes: Fixes [apolloconfig/apollo/issues/5243](https://github.com/apolloconfig/apollo/issues/5243) ## Brief changelog XXXXX Follow this checklist to help us incorporate your contribution quickly...
打包成二进制文件是成功了的,运行时报了下面的错误 ```java Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate factory class [com.ctrip.framework.apollo.spring.boot.ApolloApplicationContextInitializer] for factory type [org.springframework.context.ApplicationContextInitializer] at org.springframework.core.io.support.SpringFactoriesLoader$FailureHandler.lambda$throwing$0(SpringFactoriesLoader.java:647) at org.springframework.core.io.support.SpringFactoriesLoader$FailureHandler.lambda$handleMessage$3(SpringFactoriesLoader.java:671) at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:231) at org.springframework.core.io.support.SpringFactoriesLoader.load(SpringFactoriesLoader.java:206) at org.springframework.core.io.support.SpringFactoriesLoader.load(SpringFactoriesLoader.java:160) at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:483) at...
## What's the purpose of this PR 解决Apollo客户端在Kubernetes环境下因服务端宕机或Pod重启导致配置信息文件丢失的问题。通过使用Kubernetes ConfigMap作为新的持久化存储方案,提高配置信息的可靠性和容错性。 Solve the problem of Apollo client configuration information files being lost due to server downtime or Pod restart in the Kubernetes...
## What's the purpose of this PR about issue [104](https://github.com/apolloconfig/apollo-java/issues/104) ## Brief changelog 1.Custom HttpRequestRetyHandler supports all method requests to be retried 2.Add retry count parameter, default no retry Follow...
**你的特性请求和某个问题有关吗?请描述** 当网络抖动、`Apollo-portal gc` 或 `cpu load` 较高时,调用 `ApolloOpenApiClient` 的 api 将出现如下常见异常:  SocketTimeoutException 本身出现的频率并不高,但往往能通过重试机制有效解决。 也就是说在这种异常场景下,`Apollo-client` 的重试是十分有意义的。 **清晰简洁地描述一下你希望的解决方案** about pr:https://github.com/apolloconfig/apollo-java/pull/105 `Apollo client` 使用 `Apache httpclient` 和 `Apollo-portal` 交互,`Apache httpclient` 已经提供了**优雅的重试机制**。 `Apollo...
**你的特性请求和某个问题有关吗?请描述** 当我用openapi去查询apollo中对于配置的有效实例数据的时候,发现没有相关的api,应该怎么解决 希望在openapi中添加Instance相关的接口。 
**问题描述:** 当使用 SpringCloud 并且未主动关闭 BootstrapApplicationListener 时,如果动态调整配置,新增和删除 key 无法正确映射到绑定属性上 **问题原因:** SpringCloud 项目启动时 BootstrapApplicationListener 会在 applicationContext 创建之前先创建一个 bootstrapApplicationContext,用来优先加载环境变量,这会出现两次容器加载,触发两次 ApolloApplicationContextInitializer 初始化 当触发两次 ApolloApplicationContextInitializer 初始化时 CachedCompositePropertySource 缓存的 propertyNames 会因监听器问题无法刷新 **代码说明:** ``` // ApolloApplicationContextInitializer::initialize CompositePropertySource...
使用 ConfigService 创建出来的 configFile 或者 Config,会在内部创建一些线程池,以及添加到定时拉取更新的服务里,但是我没有看到有地方去释放这些资源,那如果我获取的 config 越来越多,感觉会有一点问题,比如 longpoll 里面那个url会越来越长,服务器的响应也会变慢? 现在我们的业务是这样的,会动态获取 ConfigFile,使用一段时间后就不用了,那运行一段时间后,有可能前台真正使用的是 50个ConfigFile,后台有500个ConfigFile在刷新